See TimeOffData - Expands all the GUIDs with their lookups
CREATE VIEW vwtimeoffdata AS (
SELECT td.userid,
td.businessunitdate,
td.length,
td.description,
td.activitycode,
td.paid,
td.timeoffrequestid,
ud.name AS agentname,
ud.managerid,
ud.managername,
td.isfulldayrequest
FROM (timeoffdata td
LEFT JOIN vwuserdetail ud ON (((ud.id)::text = (td.userid)::text)))
)
Name | Type | Default | Nullable | Children | Parents | Comment |
---|---|---|---|---|---|---|
userid | varchar(50) | true | User GUID | |||
businessunitdate | timestamp without time zone | true | Business Unit Date | |||
length | integer | true | Length of Time Off | |||
description | varchar(200) | true | Description of Time Off | |||
activitycode | varchar(50) | true | Activity Code | |||
paid | bit(1) | true | Paid Time Off | |||
timeoffrequestid | varchar(50) | true | Time Off Request GUID | |||
agentname | varchar(200) | true | Agent Name | |||
managerid | varchar(50) | true | Manager GUID | |||
managername | varchar(200) | true | Manager Name | |||
isfulldayrequest | bit(1) | true |
Name | Columns | Comment | Type |
---|---|---|---|
public.timeoffdata | 10 | BASE TABLE | |
public.vwuserdetail | 17 | See UserDetail: User Description in detail | VIEW |