The document outlines SQL exercises for a course on database fundamentals at Majmaah University. It includes a sample employee table and provides a series of queries for students to write, focusing on employee salaries, department affiliations, and job titles. The exercises aim to enhance students' practical skills in SQL querying.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
3 views
Exercises SQL
The document outlines SQL exercises for a course on database fundamentals at Majmaah University. It includes a sample employee table and provides a series of queries for students to write, focusing on employee salaries, department affiliations, and job titles. The exercises aim to enhance students' practical skills in SQL querying.
1. Write a query in SQL to find the salaries of all employees
2. Write a query in SQL to list the employees who does not belong to department 2001. 3. Write a query in SQL to list the emp_id, salary, and commission of all the employees. 4. Write a query in SQL to list the employees who joined before 1991 5. Write a query in SQL to display the average salaries of all the employees who works as ANALYST. 6. Write a query in SQL to display the details of the employee BLAZE 7. Write a query in SQL to display all the details of the employees whose commission is more than their salary. 8. Write a query in SQL to list all the employees whose designation is CLERK 9. Write a query in SQL to list the employees whose salaries are less than 3500