You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
db = sqlite3.connect("/home/work/Chinook_Sqlite.sqlite")
db.row_factory = sqlite3.Row
cursor = db.cursor()
try:
cursor.execute("SELECT album.title, group_concat(DISTINCT genre.name) as genres FROM album LEFT JOIN track ON album.albumId = track.albumId LEFT JOIN genre ON track.genreId = genre.genreId GROUP BY album.title HAVING count(DISTINCT genre.name) > 1")