I have table with date column. I want to insert integer number: from first Monday to that Sunday 1, from second Monday to Sunday 2, etc...
How can I do this in SQL server?
Expected output:
03/14/16 1 03/15/16 1 03/16/16 1 03/17/16 1 03/18/16 1 03/19/16 1 03/20/16 1 03/21/16 2 03/22/16 2 03/23/16 2 03/24/16 2 03/25/16 2 03/26/16 2 03/27/16 2 03/28/16 3 03/29/16 3 03/30/16 3 03/31/16 3 04/01/16 3 04/02/16 3 04/03/16 3 04/04/16 4