I have a database which maintains interactions with my application, a log kinds.
I want to generate reports for total interactions per day in a month. What is the best possible way to write a procedure that would return up 30 values, each value representing the count for a day?
I am using SQL Server 2005. I retrieve these values in a .NET code, upon which I want to run my algorithm.
Thanks.
Your sql query will look like the following.
In .NET you can use SqlDataReader and store values in a List