I use the Peoplesoft query manager where I can write expressions but it won't allow me to have FROM in the expression so hopefully, this isn't needed.
I have tables with fields:
TABLE 1
Term Start_Date End_Date
1 01/14/2008 03/31/2008
This table is joined with another table by the Term field:
TABLE 2
Term Test Start_Date End_Date
1 1 01/31/2008 03/20/2008
1 2 02/14/2008 02/15/2008
I need the week number in Table 2 for the Start_Date and End_Date based on the Start_Date in TABLE 1 so results would be:
Term Test Start_Date End_Date Start Date Week# End Date Week#
1 1 01/31/2008 03/20/2008 03 10
1 2 02/14/2008 02/15/2008 05 05
I have an expression "to_char(to_date(TABLE 2.START_DATE,'YYYY-MM-DD'), 'WW')" but of course it doesn't work since I don't know how to incorporate the TABLE 1 Start Date in it.
I hope that provided all information needed to help me. Thanks in advance.
I have tables with fields:
TABLE 1
Term Start_Date End_Date
1 01/14/2008 03/31/2008
This table is joined with another table by the Term field:
TABLE 2
Term Test Start_Date End_Date
1 1 01/31/2008 03/20/2008
1 2 02/14/2008 02/15/2008
I need the week number in Table 2 for the Start_Date and End_Date based on the Start_Date in TABLE 1 so results would be:
Term Test Start_Date End_Date Start Date Week# End Date Week#
1 1 01/31/2008 03/20/2008 03 10
1 2 02/14/2008 02/15/2008 05 05
I have an expression "to_char(to_date(TABLE 2.START_DATE,'YYYY-MM-DD'), 'WW')" but of course it doesn't work since I don't know how to incorporate the TABLE 1 Start Date in it.
I hope that provided all information needed to help me. Thanks in advance.