public.vwheadcountforecast

public.vwheadcountforecast

Description

See HeadCountForecast - Expands all the GUIDs with their lookups

Table Definition

CREATE VIEW vwheadcountforecast AS (
 SELECT hcf.businessunitid,
    bu.name AS businessunitname,
    hcf.planninggroup AS planninggroup_id,
    pg.name AS planninggroup_name,
    pgq.name AS planninggroup_queuename,
    hcf.scheduleid,
    sd.shorttermforecastid,
    sd.description AS scheduledesc,
    sd.published AS sched_published,
    hcf.weekdate,
    hcf.startdate,
    hcf.startdateltc,
    hcf.requiredperinterval,
    hcf.requiredwithoutshrinkageperinterval,
    hcf.updated
   FROM ((((headcountforecastdata hcf
     LEFT JOIN budetails bu ON (((hcf.businessunitid)::text = (bu.id)::text)))
     LEFT JOIN scheduledetails sd ON (((hcf.scheduleid)::text = (sd.scheduleid)::text)))
     LEFT JOIN planninggroupdetails pg ON (((hcf.planninggroup)::text = (pg.id)::text)))
     LEFT JOIN queuedetails pgq ON (((pg.queueid)::text = (pgq.id)::text)))
)

Columns

Name Type Default Nullable Children Parents Comment
businessunitid varchar(50) true Business Unit GUID
businessunitname varchar(50) true Business Unit Name
planninggroup_id varchar(50) true Planning Group GUID
planninggroup_name varchar(100) true Planning Group Name
planninggroup_queuename varchar(255) true Planning Group Queue Name
scheduleid varchar(50) true Schedule GUID
shorttermforecastid varchar(50) true Short-Term Forecast GUID
scheduledesc varchar(400) true Schedule Description
sched_published bit(1) true Is Schedule Published?
weekdate timestamp without time zone true Week Date
startdate timestamp without time zone true Start Date (UTC)
startdateltc timestamp without time zone true Start Date (LTC)
requiredperinterval numeric(20,2) true Required Per Interval
requiredwithoutshrinkageperinterval numeric(20,2) true Required Without Shrinkage Per Interval
updated timestamp without time zone true Last Updated

Referenced Tables

Name Columns Comment Type
public.headcountforecastdata 10 BASE TABLE
public.budetails 3 BASE TABLE
public.scheduledetails 12 Schedule Details Lookup Data BASE TABLE
public.planninggroupdetails 11 BASE TABLE
public.queuedetails 17 Queue Lookup data BASE TABLE

    • Related Articles

    • public.participantattributesdynamic

      Description Columns Name Type Default Nullable Children Parents Comment keyid varchar(50) false conversationid varchar(50) false conversationstartdate timestamp without time zone false conversationstartdateltc timestamp without time zone true ...
    • public.evalquestiondata

      Description Columns Name Type Default Nullable Children Parents Comment keyid varchar(50) false evaluationid varchar(50) false evaluationformid varchar(50) false questiongroupid varchar(50) true questionid varchar(50) true answerid varchar(50) true ...
    • public.userpresencedetaileddata

      Description User Presence Detailed Data Columns Name Type Default Nullable Children Parents Comment keyid varchar(255) false Primary Key userid varchar(50) true Agent GUID starttime timestamp without time zone false Start Time (UTC) starttimeltc ...
    • public.userinteractionpresencedetaileddata

      Description Columns Name Type Default Nullable Children Parents Comment keyid varchar(255) false userid varchar(50) true starttime timestamp without time zone false starttimeltc timestamp without time zone true endtime timestamp without time zone ...
    • public.userpresencedata

      Description Columns Name Type Default Nullable Children Parents Comment keyid varchar(255) false id varchar(50) true userid varchar(50) true startdate timestamp without time zone false startdateltc timestamp without time zone true timetype ...