Re: Close to a million records & query too slow
Could you also assist me with this query now based on the same schema.
select artist.artistId, artist.name, count(play.playId) as plays from charts.play play, charts.artist artist, charts.song song where (play.songId = song.songId) and (song.artistId = artist.artistId) and (date(play.dateAndTime) >= ?) and (date(play.dateAndTime) <= ?) and (artist.isLocal = ?) group by artist.artistId order by plays desc;
This query seeks to retrieve all artists with the most number of plays in the date interval.
Thank you in advance for your ingenuity.
--
Sabelo
Subject
Views
Written By
Posted
6402
March 03, 2010 01:49PM
2525
March 04, 2010 10:09PM
2315
March 08, 2010 03:36PM
Re: Close to a million records & query too slow
1972
March 08, 2010 04:12PM
2359
March 09, 2010 09:20PM
1991
March 11, 2010 01:47AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.