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
Get step-by-step solutions from verified subject matter experts
