Tuesday, 4 March 2025

duplicate remove

 WITH CTE as(

select *,ROW_NUMBER () over (PARTITION BY User_ID order by Approver_Sequence) as row_num FROM tbl_WorkFlowMembers where 

WorkFlow_ID ='RAILCHLuz00001')

delete from cte

where row_num >1

delete duplicate record

over paritition must be use Order by....

No comments:

Post a Comment

HCL healthcare

 hcl health care f2f second round interview asked more uestions on microservice 1.apim manage all apis in one place 2.sql profiler in one fo...