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)
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
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