I need a query to select different values from different columns as shown below:
timestamp queues queuesname groupnumb
23-01-2014 FNG CGI 15467P
24-02-2014 ACS GHK 15467P
26-02-2014 ERT FNG 15467P
01-03-2014 ACS TYU 15467P
04-05-2014 TYI GHK 15467P
I need the the row with queues = ACS (latest one has timestamp 01-03-2014) and queuesname = GHK (latest one has timestamp 04-05-2014)
For the above example I need this output:
Min_timestamp max_timestamp queues queuesname groupn
01-03-2014 04-05-2014 ACS GHK 15467P
I don’t need a hard coded query.