Tuesday, 3 September 2024

get users list by workflowid

 WITH GroupedResults AS (

    SELECT w.*, 

           ROW_NUMBER() OVER (PARTITION BY WorkFlow_ID ORDER BY Approver_Sequence DESC) AS rn

    FROM tbl_WorkFlowMembers w

    WHERE Division_ID = 'MSV' AND Country_Code = 'MX'

)

No comments:

Post a Comment

best

  The phrase "Everything should be made as simple as possible, but not simpler" is a quote by Albert Einstein, meaning that  while...