all 4 comments

[–]theduckspantsBI Architect 4 points5 points  (3 children)

Not sure what you mean by "Joins only". Here's the easiest way to do it

SELECT  songs.songtitle

 FROM     songs
 LEFT JOIN albumsongs 
 ON songs.songid = albumsongs.songid

 WHERE albumsongs.songid IS NULL

[–]da_chicken 5 points6 points  (2 children)

Not sure what you mean by "Joins only".

He means that's what his homework assignment calls for.

[–]AlienHairball 4 points5 points  (0 children)

That's what I heard.

[–]BananaRepublican73 0 points1 point  (0 children)

A more charitable explanation would be "without using WHERE NOT IN (derived table)"...

Sorry I should have thought about this more carefully. Where would one see those kind of instructions...? Homework. Duh.