MySQL Forums
Forum List  »  Performance

Re: Query optimize on large database
Posted by: Rick James
Date: July 20, 2016 09:29AM

SELECT d2.Artist, d2.Title, COUNT(*)
FROM data d1
JOIN data d2 USING(Artist,Title)
WHERE d1.owner_id = @user_id
GROUP BY d2.Artist, d2.Title

Options: ReplyQuote


Subject
Views
Written By
Posted
1448
July 13, 2016 01:40AM
Re: Query optimize on large database
814
July 20, 2016 09:29AM


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.