Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Hi GuysI have a table containing order information.An example is shown below (trimmed down version):OrderID, DateEntered1, 2009-04-062, 2009-04-063, 2009-04-084, 2009-04 105, 2009-04-126, 2009-04-137, 2009-04-158,2009-04-16Etc.What I need to do is produce a query that will return a count of orders by week commencing date. With the first day being a Monday.Eg.WeekCommencing, Count2009-04-06, 42009-04-13, 202009-04-20, 252009-04-27, 33Etc.Is this possible to do?Thanking you in advance!!!