2006-12-17 22:41:06 +07:00
|
|
|
CREATE OR REPLACE VIEW RV_REQUESTUPDATES_ONLY
|
|
|
|
(AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY,
|
|
|
|
UPDATED, UPDATEDBY, R_REQUEST_ID, AD_USER_ID)
|
|
|
|
AS
|
2007-01-26 16:31:43 +07:00
|
|
|
SELECT MIN(AD_Client_ID) AS AD_Client_ID, MIN(AD_Org_ID) AS AD_ORG_ID,
|
|
|
|
cast('Y' as char) AS IsActive,
|
2006-12-17 22:41:06 +07:00
|
|
|
getdate() AS Created, 0 AS CreatedBy, getdate() AS Updated, 0 AS UpdatedBy,
|
|
|
|
R_Request_ID, AD_User_ID
|
|
|
|
FROM RV_RequestUpdates
|
|
|
|
WHERE IsActive='Y'
|
|
|
|
GROUP BY R_Request_ID, AD_User_ID;
|
|
|
|
|
|
|
|
|
|
|
|
|