MySQL Forums
Forum List  »  Performance

Re: Query optimize on large database
Posted by: Peter Brawley
Date: July 17, 2016 11:22AM

I'm confused, or the query is: it ...

- selects d2.owner_id

- groups by d1.owner_id

- self-joins on artist and title, not owner_id

- restricts d1.owner_id to one value

Grouping by a column that may have just one value makes no sense. Selecting a column that neither aggregates nor is aggregated will return arbitrary results.

In plain English, what is the query requirement?

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Query optimize on large database
329
July 17, 2016 11:22AM


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.