I am trying to do a simple exercise for slq where i have to get as much info as i can about poeple who work in japan in my database. However i just started learning so i don't even know what to google to answer my problem. So here it is:
My Code:
SELECT *
FROM Employees
WHERE DEPARTMENT_ID =
(SELECT *
FROM Departments
WHERE LOCATION_ID =
(SELECT *
FROM Locations
WHERE Country_ID =
(SELECT *
FROM Countries
WHERE Country_Name = 'Japan')))
My Error:
Msg 116, Level 16, State 1, Line 12
Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.
Msg 116, Level 16, State 1, Line 12
Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.
Msg 116, Level 16, State 1, Line 12
Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.
My Database: https://i.sstatic.net/ar0aT.png
EDIT: I think i hit a wall... https://i.sstatic.net/FjTps.png