Select one row for each different value of column, MySQL -
I am a bit shaky and can not get my head around this MySQL
< / P>I want to get the last print time for each event, Then select the Sales ID, which is for sale with that event ID more than the last print time.
I have taken the burden of the way but I can not understand it please help!
select s.saleID, s.eventID, s.saleTime, lp from LastPrintTime (EventID Select LP.eventID = s.eventID and saleTime> on LP InnerWare Joint Sales S from the print group by eventID as maximum (print time), LastPrintTime. Lp.LastPrintTime
Comments
Post a Comment