HI,
I need help Sql table like below with different Insert and Delete in a column for a given Account with response column being dates.
I would like to get the result with Insert and Delete in two columns such that insert date and delete dates are closest like output desired section.
Any help is greatly appreciated.
Thanks,
VisitID QueryID Response
PA10004252470 Insert 20240219
PA10004252970 Delete 20240212
PA10004252970 Delete 20240215
PA10004252970 Insert 20240211
PA10004252970 Insert 20240214
required Output
VisitID Insert Delete
PA10004252970 20240211 20240212
PA10004252970 20240214 20240215
PA10004252970 20240219