MySQL Forums
Forum List  »  Newbie

get table sorted
Posted by: Robert Slotpole
Date: February 18, 2024 07:24PM

How do I get the table produced sorted by, a.exam, a.question

select * from(
(select * from responses order by id, exam, question) a
left JOIN
(select max(exam) as maxexam from responses) b
on a.exam <= b.maxexam
and > 2 )

Options: ReplyQuote

Written By
get table sorted
February 18, 2024 07:24PM
February 19, 2024 12:40AM

Sorry, only registered users may post in this forum.

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.