Graphs and tables for your Spotify account.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
323 B

-- select t.name as track, a.name as artist
select distinct on (1)
timestamp, substring(t.name for 50) as track, a.name as artist
from api_history as h
join api_track as t
on h.track_id = t.id
join api_track_artists ta
on ta.track_id = t.id
join api_artist a
on a.id = ta.artist_id
order by timestamp desc
-- ;
limit 20;