select devicename, name, value, timestamp from table1 gives me the following,
DEVICENAME NAME VALUE TIMESTAMP
123 CURRENT 130 2012-10-16 13:00:00.000
123 AVG 140 2012-10-16 13:00:00.000
123 MIN 100 2012-10-16 13:00:00.000
123 MAX 160 2012-10-16 13:00:00.000
How do i get them like this in sql query,
123, 130, 140, 100, 160 2012-10-16 13:00:00.000
1 Answer