Question: This problem is based on Elmasri's company database, In each of these SQL queries, there is a mistake. Explain clearly and briefly what the mistake

 This problem is based on Elmasri's company database, In each of

This problem is based on Elmasri's company database, In each of these SQL queries, there is a mistake. Explain clearly and briefly what the mistake is. Please note that I am not looking for a minor SQL syntax error here, but rather you have to find a significant semantic (logic) error. . Give the correct SQL for specifying the query (a) Find the names of the employees who do not work on any project (SELECT FNAME, LNAME FROM EMPLOYEE) EXCEPT (SELECT FNAME, LNAME FROM EMPLOYEE, WORKS_ON WHERE EMPLOYEE. SSN = WORKS-ON, ESSN ); (b) Find the social security number of employee with the lowest salary SELECT SSN FROM EMPLOYEE WHERE SALARY

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!