My table
id updateddate updatedbyuser department
-------------------------------------------------------
40715449759 12/7/2018 12:24 1260 IB
40715449759 12/8/2018 10:40 1203 ESCALATION
40715449759 12/8/2018 10:40 task
40715449759 12/9/2018 9:58 client
40715449759 12/9/2018 12:09 300050282 ESCALATION
42058447691 12/23/2018 16:44 1712 TASK
42058447691 12/26/2018 19:33 4700 ESCALATION
42058447691 12/27/2018 17:26 7357 ESCALATION
Output
id first_action_date
--------------------------------
40715449759 12/8/2018 10:40
42058447691 12/26/2018 19:33
I'm trying to extract id and first_action_time from mytable where the first instance of updateddate is first_action_date where the department is ESCALATION for a unique id