May 2020
Beginner
564 pages
14h 9m
English
This section will help you better understand how to use a non-correlated subquery in the WHERE clause:
You can execute the following query using a non-correlated subquery with IN:
USE lahmansbaseballdb;SELECT playerid, yearid, g as GamesBatted FROM battingWHERE playerid IN (SELECT playerid FROM people WHERE birthcity = 'Boston');
The preceding query returns the ...
Read now
Unlock full access