SQL View Name:queueelm_all
SQL View Number:5749
Group:Support
Base Table:queue
Description:Display cases, subcase, crs, dialogues, action items, opportunities, solutions, part requests in a queue
Flags:VIEW_OPTIMIZED 
Baseline/Custom:Baseline

Fields:

Field NameCommon TypeDatabase TypeGeneric Field IDArray SizeDefaultFlagsComment
ageCLK_TIMEdatetime    Creation date and time of the probdesc object 
age_strCHARvarchar 32  To display elapsed time of a workflow object in queue 
conditionCHARvarchar 80  Title of condition 
creation_dateCLK_TIMEdatetime    Dummy field use for temporary value 
devLONGint151  DIRECT Row version number for mobile distribution purposes 
elm_objidLONGint   DIRECT Queue element internal record number 
idnumCHARvarchar 32  Unique ID number 
objidLONGint3  DIRECT Internal record number 
ownerCHARvarchar 24  ??? 
priorityCHARvarchar 32  Dummy field use to store a temporary value 
que_objidLONGint   DIRECT Queue element internal record number 
queue_typeCHARvarchar 32  Dummy field use to store a temporary value 
statusCHARvarchar 32  Dummy field use to store a temporary value 
struct_typeLONGint   DIRECT Dummy field use to store a temporary value 
titleCHARvarchar 24  Queue title 

SQL:

(
select elm_objid as objid, '0' as queue_type, ' ' as age_str, -1 as dev,que_objid, 8 as elm_objid, age, start_date as creation_date, condition, status, title, '' as priority, id as idnum, '' as owner, -1 as struct_type from table_queelm_task
union
select o.elm_objid as objid,'1' as queue_type,' ' as age_str,-1 as dev,o.que_objid,2 as elm_objid,o.age, c.creation_time as creation_date,o.condition,o.status,o.title,o.priority,o.id_number as idnum,'' as owner,-1 as struct_type from table_queelm_case o,table_case c where c.objid=o.elm_objid
union
select elm_objid as objid,'2' as queue_type,' ' as age_str,-1 as dev,n.que_objid,1 as elm_objid,n.age,b.creation_time as creation_date,n.condition,n.status,n.title,n.priority,n.id_number as idnum,'' as owner, -1 as struct_type from table_queelm_bug n,table_bug b where b.objid=n.elm_objid
union
select elm_objid as objid, '3' as queue_type, ' ' as age_str,-1 as dev, que_objid, 3 as elm_objid, age, create_dt as creation_date, condition, table_queelm_contr.status, table_queelm_contr.title, '' as priority, table_queelm_contr.id as idnum, '' as owner,table_contract.struct_type as struct_type from table_queelm_contr, table_contract where table_contract.objid = table_queelm_contr.elm_objid and table_queelm_contr.struct_type=0
union
select elm_objid as objid,'4' as queue_type,' ' as age_str,-1 as dev,que_objid,4 as elm_objid,age,e.creation_time as creation_date,condition, status,e.title,priority,id as idnum,'' as owner,-1 as struct_type from table_queelm_dlg p,table_dialogue e where e.objid=p.elm_objid
union
select elm_objid as objid, '5' as queue_type, ' ' as age_str, -1 as dev,que_objid, 6 as elm_objid, age, update_stamp as creation_date, condition, status, name as title, '' as priority, id as idnum, '' as owner,-1 as struct_type from table_queelm_opp
union
select elm_objid as objid, '6' as queue_type, ' ' as age_str,-1 as dev, que_objid, 3 as elm_objid, age, create_dt as creation_date, condition, table_queelm_contr.status, table_queelm_contr.title, '' as priority, table_queelm_contr.id as idnum, '' as owner,table_contract.struct_type as struct_type from table_queelm_contr, table_contract where table_contract.objid = table_queelm_contr.elm_objid and table_queelm_contr.struct_type=4
union
select objid, '61' as queue_type, ' ' as age_str, -1 as dev, que_objid, 9 as elm_objid, age, creation_date, condition, status, title, priority, idnum, '' as owner,-1 as struct_type from table_queueelm_demanddtl
union
select elm_objid as objid, '7' as queue_type, ' ' as age_str,-1 as dev, que_objid, 3 as elm_objid, age, create_dt as creation_date, condition, table_queelm_contr.status, table_queelm_contr.title, '' as priority, table_queelm_contr.id as idnum, '' as owner,table_contract.struct_type as struct_type from table_queelm_contr, table_contract where table_contract.objid = table_queelm_contr.elm_objid and table_queelm_contr.struct_type=1
union
select elm_objid as objid, '8' as queue_type, ' ' as age_str, -1 as dev,que_objid, 5 as elm_objid, age, table_probdesc.creation_time as creation_date, condition, '' as status, table_probdesc.title, '' as priority,
table_probdesc.id_number as idnum, '' as owner,-1 as struct_type from table_queelm_fnl, table_probdesc where table_probdesc.objid = table_queelm_fnl.elm_objid
union
select elm_objid as objid, '9' as queue_type, ' ' as age_str, -1 as dev,que_objid, 7 as elm_objid, age, table_subcase.creation_time as creation_date, condition, status, table_subcase.title, priority, table_subcase.id_number as idnum, '' as owner,-1 as struct_type from table_queelm_subcase, table_subcase where table_subcase.objid = table_queelm_subcase.elm_objid
)
My Recent Objects
queueelm_all