MySQL Forums
Forum List  »  Newbie

Re: SELECT TOP 3 scores in each class with JOIN
Posted by: Daniel Yantis
Date: October 04, 2016 06:54PM

Now we are on the same page!!!
Excellent, however, there still has to be a join or union.

>One could write a complicated Left Join to awards in there, which obviously you're free to do

This is what the entire question is about.
It's too complicated for me so I've been asking for help.

In my sample data only 1 award has the words 'Best of' so we can't rely on that.
plus the awards can grow later with all kinds of titles. In fact, there is a 'Longest Distance Driven' award. lol

Thus, the complicated join or union to Awards.DSQ
award (string), DSQ (boolean)
so the join would be on award and the needed column is DSQ.

(I have an entire program made for this and changing every column name to all lowercase is not time essential. Plus I like the way it looks to me so I'll keep the case structure)

Options: ReplyQuote


Subject
Written By
Posted
Re: SELECT TOP 3 scores in each class with JOIN
October 04, 2016 06:54PM


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.