|
|
||||||||
|
Training
|
Description:
People with accounting systems might find this problem interesting as it deals with date and time calculations. It deals with weekly sales analysis when your week ending day is dynamic. Some companies may end their week on a Friday, others on a Saturday.
So, given some sales data and a week ending day, produce sales summaries.
CREATE TABLE Sales ;
Now, if you use Saturday as a week ending date, you should get results like this:
IF however, your week ending day is a Friday, you should get these results:
WEEK_END QTY
There are some interesting and different ways to solve this problem. See if you can find some! |
|||||||