DBMS Lab 4
DBMS Lab 4
DBMS LAB 4
1. Complete the ‘Basic Joins’ section of SQL 50 Badge on leetcode.
1378. Replace Employee ID with the Unique Identifier
1581. Customer Who Visited But Did not Make Any Transactions
3. Write a query to display the last name, job, department number, and department name
for all employees who work in Toronto.
4. Display the employee full name and department name for all employees who have an
i (lowercase) in their full names.
5. Write a query to display the employee last name, department name, location ID, and
city of all employees who earn a commission.
6. Display the names and hire dates for all employees who were hired before their
managers, along with their manager’s names and hire dates. Label the columns
Employee, Emp_Hired, Manager, and Mgr_Hired. Order the results in descending by
the employee number.