May 2020
Beginner
564 pages
14h 9m
English
PostgreSQL and SQL Server use the EXCEPT operator to accomplish what MySQL does with a right or left excluding join. You can rewrite the code from earlier in this section in PostgreSQL and SQL Server, like this:
USE lahmansbaseballdbSELECT playeridFROM peopleEXCEPTSELECT playeridFROM allstarfull;
The previous query will return all rows from the people table that don't appear in the allstarfull table.
Read now
Unlock full access