Quantcast
Channel: Database Design forum
Viewing all articles
Browse latest Browse all 2729

Getting first line of data from log table

$
0
0

Hello All,

I have a table log that contains the following rows. For every given log case I have the following logs

id case number Created By Activity Type
247527901 123 Agent2 Transfer
247527900 123 Agent2 AEU_Hold
247527899 123 Agent1 Delay Service Type
247527898 123 Agent1 AEU_Hold
247527897 123 Agent1 Update Status
247498253 123 Phone Field Update
247498252 123 Phone Field Update
247498251 123 Phone Event Occurred

Now I need to get first line of each Created By  as below

id case number Created By Activity Type
247527900 123 Agent2 AEU_Hold
247527897 123 Agent1 Update Status
247498251 123 Phone Event Occurred

Please help


Viewing all articles
Browse latest Browse all 2729

Trending Articles