Question: This is my database schema Person(pid : integer, name:text, city: text, birthYear: integer) Knows(pid1 : integer, pid2 : integer) Company(cname : text, city : text)

This is my database schema Person(pid : integer, name:text, city: text, birthYear: integer) Knows(pid1 : integer, pid2 : integer) Company(cname : text, city : text) WorksFor(pid : integer, cname:text, salary:integer) JobSkill(skill : text) PersonSkill(pid : text, skill : text)

Below are my questions-

Find the pid and name of each person who works for IBM and who has a lower salary than some other person who also works at IBM and who has the Programming skill. (a) Formulate this query in SQL without using subqueries and set predicates. You are allowed to use the SQL operators INTERSECT, UNION, and EXCEPT.

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!