[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

[sqr-users] SQR problem



Hi all,
 
while debugging, I have came accross one statement in SQR i.e
[PS_CS_EMPL_EVT_T01 X : $e.cs_event_view_name].
Here both are the record names. $e.cs_event_view_name is view in PS which is
dynamically selected in another procedure.
Can anybody please explain what is the logic behind this?
 
BEGIN-SELECT
X.EMPLID                        &x.emplid
X.CS_EVENT_TYPE                &x.cs_event_type
TO_CHAR(trunc(X.CS_EVENT_ENTRY_DT),'YYYY-MM-DD')
&x.cs_event_entry_dt 
TO_CHAR(trunc(X.CS_EVENT_EFFDT),'YYYY-MM-DD')           &x.cs_event_effdt
X.CS_PRIORITY_FLAG              &x.cs_priority_flag
X.CS_EVENT_PARAM                &x.cs_event_param
  show 'Processing Employee: ' &x.emplid ', Event: ' &x.cs_event_type ',
Effdt: ' &x.cs_event_effdt
  show '&x.cs_priority_flag ' &x.cs_priority_flag ',&x.cs_event_param '
&x.cs_event_param
  do Insert-Employee-Event
FROM
         [PS_CS_EMPL_EVT_T01 X : $e.cs_event_view_name]
WHERE
  not exists (select * from ps_cs_wr_tbl where emplid = x.emplid) and (  !**
entire line for Transition project **
        (X.CS_EVENT_EFFDT between trunc(SYSDATE)-{RECENCY_DAYS} and
trunc(SYSDATE)+#future_days)
OR
        (X.CS_EVENT_ENTRY_DT >= trunc(SYSDATE)-{RECENCY_DAYS} AND 
        X.CS_EVENT_EFFDT <= trunc(SYSDATE)+#future_days))  !** ) For
Transition project **
END-SELECT
 
 
 
Thanks and Regards,
ss
 

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users