So I'm learning SQL at Khan Academy and I can't get my code to work properly to complete the third step of the Playlist maker challenge. I'm supposed to use a nested subquery with an IN operator. I pasted my code below.
The first two sql statements are valid for the steps 1 and 2 of the challenge. The third and fourth statements are my attempts at completing the third step. How do I correct it to complete the challenge?
SELECT title FROM songs WHERE artist = "Queen";
SELECT name FROM artists WHERE genre = 'Pop';
SELECT name FROM artists WHERE genre IN ( SELECT title FROM songs WHERE artist = 'Queen');
SELECT title FROM songs WHERE artist IN ( SELECT name FROM artists WHERE artist LIKE 'Pop');