Introduction to Database Systems Queries in SQL The select ...
Introduction to Database Systems Queries in SQL The select ...
Introduction to Database Systems Queries in SQL The select ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Exercise 11 (Solution 2)<br />
Can one express set difference by way of nest<strong>in</strong>g?<br />
<strong>select</strong> name from employee<br />
except<br />
<strong>select</strong> lastName as name from employee<br />
<strong>select</strong> name<br />
from employee e<br />
where not exists (<strong>select</strong> *<br />
from employee<br />
where lastName = e.name)<br />
99<br />
Exercise 12: Nest<strong>in</strong>g and Functions<br />
“<strong>The</strong> person (or the persons) that have the highest <strong>in</strong>come”<br />
100