Advertisement
AlbertusMII

vRespondLog Approval Berjenjang

Nov 27th, 2023
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.79 KB | None | 0 0
  1. /****** Object:  View [dbo].[vRespondLog]    Script Date: 27/11/2023 14:10:32 ******/
  2. SET ANSI_NULLS ON
  3. GO
  4.  
  5. SET QUOTED_IDENTIFIER ON
  6. GO
  7.  
  8.  
  9.  
  10. CREATE VIEW [dbo].[vRespondLog]
  11. AS
  12. SELECT *
  13. FROM
  14. (   SELECT
  15.         rl.RespondLogID AS RespondID,
  16.         rl.CurrentResponderID AS ResponderID,
  17.         rl.RespondType,
  18.         rl.RespondTypeID,
  19.         rl.RespondeeID,
  20.         er.FirstName + ' ' + er.LastName AS ResponderName,
  21.         rl.CurrentResponderLevel AS ResponderLevel,
  22.         rl.isApproved AS isApprove,
  23.         rl.Remark,
  24.         rl.RespondDate,
  25.         rl.isLayeredApproval
  26.     FROM
  27.         RespondLog rl
  28.     JOIN
  29.         Employee er ON rl.CurrentResponderID = er.EmployeeID
  30.     --WHERE
  31.     --    rl.RespondeeID = @EmployeeID
  32.     --    AND rl.RespondTypeID = @AttendanceID
  33.     --    AND rl.RespondType = @strApprType
  34.     --ORDER BY
  35.     --  rl.RespondDate ASC
  36. ) as result
  37. GO
  38.  
  39.  
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement