I have the following query
SELECT McId, MAX(TimeDone)
FROM Trace
WHERE PcbId = 'C825514362'
AND DeviceId <> 0 GROUP BY McId
But I also need to get values from following columns Program,DeviceId,OrderNo
Is it possible to somehow combine that in the same query ?
This query should run under mssql , mysql and oracle.
1 Answer