Daily Archives Wednesday, September 2010

SQL: Start day and End day of week

I just got an interesting question: how do you know for a date, in which week (Monday – Sunday) it falls.I created a little test script to get 31 days of data:(date_c is the same as date_d, but in a more readable output. c stands for char, d for date)s…