Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3. (10 points) This problem is based on Elmasri's company database, In each of these SQL queries, there is a mistake. . Explain clearly and
3. (10 points) 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started