I'm running a simple join query as follow
Select T.tno,P.GMass,t.TicketNo,t.SchedID,t.Compound from TicketBatch
T join PalletWeight P on T.tno=P.Tno where isProcesed = 0 and P.TNo
=(select MAX(tno) from PalletWeight)
Result query is
Id like to have a more summarized result that would give one one field of the tno , gmass ,schedID and compound (this will always be identical) .The TicketNo would have to be coalesced .
ie
tno , Gmass , TicketNo , SchedID , Compound
(250) , (200.00) , (105132,105133,105134), 41729 ,Null
Any help would be appreciated