CREATE VIEW vwofferedforecast AS (
SELECT DISTINCT ofd.keyid,
ofd.businessunitid,
bu.name AS "BUSINESSUNITNAME",
ofd.scheduleid,
scd.description AS "SCHEDULEDESC",
ofd.planninggroup AS "PLANNINGGROUPID",
pgd.name AS "PLANNINGGROUPNAME",
ofd.shorttermforecastid,
ofd.startdate,
ofd.startdateltc,
ofd.weekdate,
ofd.week,
ofd.avghandleperinterval,
ofd.offeredperinterval,
ofd.canuseforscheduling,
ofd.updated
FROM (((offeredforecastdata ofd
LEFT JOIN vwbudetails bu ON (((bu.id)::text = (ofd.businessunitid)::text)))
LEFT JOIN scheduledetails scd ON (((scd.scheduleid)::text = (ofd.scheduleid)::text)))
LEFT JOIN planninggroupdetails pgd ON (((pgd.id)::text = (ofd.planninggroup)::text)))
)
Name | Type | Default | Nullable | Children | Parents | Comment |
---|---|---|---|---|---|---|
keyid | varchar(150) | true | ||||
businessunitid | varchar(50) | true | ||||
BUSINESSUNITNAME | varchar(50) | true | ||||
scheduleid | varchar(50) | true | ||||
SCHEDULEDESC | varchar(400) | true | ||||
PLANNINGGROUPID | varchar(50) | true | ||||
PLANNINGGROUPNAME | varchar(100) | true | ||||
shorttermforecastid | varchar(50) | true | ||||
startdate | timestamp without time zone | true | ||||
startdateltc | timestamp without time zone | true | ||||
weekdate | date | true | ||||
week | bigint | true | ||||
avghandleperinterval | numeric(20,2) | true | ||||
offeredperinterval | numeric(20,2) | true | ||||
canuseforscheduling | boolean | true | ||||
updated | timestamp without time zone | true |
Name | Columns | Comment | Type |
---|---|---|---|
public.offeredforecastdata | 13 | BASE TABLE | |
public.vwbudetails | 3 | See budetails table | VIEW |
public.scheduledetails | 12 | Schedule Details Lookup Data | BASE TABLE |
public.planninggroupdetails | 11 | BASE TABLE |