Management unit details
CREATE VIEW vwmudetails AS (
SELECT mu.id,
mu.name,
mu.startofweek,
mu.timezone,
mu.severealertthresholdminutes,
mu.adherencetargetpercent,
mu.adherenceexceptionthresholdseconds,
mu.nononqueueactivitiesequivalent,
mu.trackonqueueactivity,
mu.updated,
mu.businessunitid AS business_unit_id,
bu.name AS business_unit_name,
mu.divisionid AS division_id,
dd.name AS division_name
FROM ((mudetails mu
LEFT JOIN budetails bu ON (((bu.id)::text = (mu.businessunitid)::text)))
LEFT JOIN divisiondetails dd ON (((dd.id)::text = (mu.divisionid)::text)))
)| Name | Type | Default | Nullable | Children | Parents | Comment |
|---|---|---|---|---|---|---|
| id | varchar(50) | true | Primary Key | |||
| name | varchar(100) | true | Name | |||
| startofweek | varchar(50) | true | Start of Week | |||
| timezone | varchar(50) | true | Timezone | |||
| severealertthresholdminutes | integer | true | Severe Alert Threshold Minutes | |||
| adherencetargetpercent | numeric(20,2) | true | Adherence Target Percentage | |||
| adherenceexceptionthresholdseconds | integer | true | ||||
| nononqueueactivitiesequivalent | bit(1) | true | Non-On-Queue Activities Equivalent | |||
| trackonqueueactivity | bit(1) | true | Track On-Queue Activity | |||
| updated | timestamp without time zone | true | Last Updated | |||
| business_unit_id | varchar(50) | true | Business Unit GUID | |||
| business_unit_name | varchar(50) | true | Business Unit Name | |||
| division_id | varchar(50) | true | Management Unit Division GUID | |||
| division_name | varchar(50) | true | Management Unit Division Name |
| Name | Columns | Comment | Type |
|---|---|---|---|
| public.mudetails | 12 | BASE TABLE | |
| public.budetails | 4 | BASE TABLE | |
| public.divisiondetails | 5 | BASE TABLE |