J
Jaye
Hi,
I have the below Qry
This will give me the last two meter reading for each
serial number on two rows. However I would like this to
appear on one row. As See Below
Serial_Number / Previous_Reading / Previous_Reading_Date
Current_Reading / Current _Reading_Date
Can anyone help with this
Jaye
I have the below Qry
SELECT Serial_Number, Close_Total, Close_Colour_Total,
Close_Reading_Date
FROM [Meter Reading Tbl] AS T1
Where Close_Reading_Date In
(SELECT Top 2 Close_Reading_Date
FROM [Meter Reading Tbl] as T2
WHERE T2.Serial_Number=T1.Serial_Number
ORDER BY T2.Close_Reading_Date DESC)
ORDER BY T1.Serial_Number, T1.Close_Reading_Date
This will give me the last two meter reading for each
serial number on two rows. However I would like this to
appear on one row. As See Below
Serial_Number / Previous_Reading / Previous_Reading_Date
Current_Reading / Current _Reading_Date
Can anyone help with this
Jaye