I am building a report for my application using VS2010.
The data for the application is stored in a SQL Server 2008 R2 database.
The columns are
DateCreated (DateTime)
CardPrinted (bit)
DatePrinted(DateTime)
I want to create a report that will show, for each month starting from January 2012,
- Total Number of
CardPrintedfor week1 - Total Number of
CardPrintedfor week2 - Total Number of
CardPrintedfor week3 - Total Number of
CardPrintedfor week 4
NB: If a card is printed, it is Marks 1 in the database, so that the CardPrinted
column is either 1 or 0.
Please I need someone to to help with the query I needed to achieve this.
Here’s a start