R
Ranjit kurian
i need a query to view the dates and report names
example:
There are Three columns(Frequency, DAY, REPORT)in a TABLE, now my query
should give me the date as shown below in QUERY, only if the report is due
today(example:Fri)
Explanation of a TABLE
Daily: my query should show the reports(a,b,c,d) every day, if i have
mentioned Daily in ‘DAY’ column.
Weekly: my query should show the reports(a,b,c,d) only, if the given
DAY(Mon,Tue etc…) match with todays day
Monthly: if the current months week is week1, week2, week3 or week4 the
query should count the number of week in month and if the given DAY(week1,
week2,etc…) matchs with current week of a current month then the report name
should be viewed .
TABLE:
Frequency DAY REPORT
Monthly Week1 a
Daily Daily b
Weekly Mon c
Monthly Week2 d
QUERY:
REPORT DATE
d 12/09/08
b 12/09/08
example:
There are Three columns(Frequency, DAY, REPORT)in a TABLE, now my query
should give me the date as shown below in QUERY, only if the report is due
today(example:Fri)
Explanation of a TABLE
Daily: my query should show the reports(a,b,c,d) every day, if i have
mentioned Daily in ‘DAY’ column.
Weekly: my query should show the reports(a,b,c,d) only, if the given
DAY(Mon,Tue etc…) match with todays day
Monthly: if the current months week is week1, week2, week3 or week4 the
query should count the number of week in month and if the given DAY(week1,
week2,etc…) matchs with current week of a current month then the report name
should be viewed .
TABLE:
Frequency DAY REPORT
Monthly Week1 a
Daily Daily b
Weekly Mon c
Monthly Week2 d
QUERY:
REPORT DATE
d 12/09/08
b 12/09/08