Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions