• Examples
  • Sample Database
#1
SELECT
	artists.ArtistId,
	albumId
FROM
	artists
LEFT JOIN albums ON albums.artistid = artists.artistid
ORDER BY
	albumid;
#2
SELECT
	artists.ArtistId,
	albumId
FROM
	artists
LEFT JOIN albums ON albums.artistid = artists.artistid
WHERE
	albumid IS NULL;
albums artists customers employees genres invoice_items invoices media_types playlist_track playlists tracks
  • SQL Query
Enter a query, then click the execute button or press F9 to run it.
  • Result
Loading