SouthwestNut
Programmer
I have a SQL table that has 350 fields and it holds sales data for the past 3 years for a number of hotels. My client wants a report that shows sales as follows:
Previous Day
Month to Date
Last year month to date
I would need this information for about 200 different fields. I have written 3 SQL Stored procedures for each data grouping, but what is the optimal way to combine the procedures together so it can be included on one report? To further compound the issue, parameters are used to allow users to identify which hotel they want to query and the date the information is effective.
Previous Day
Month to Date
Last year month to date
I would need this information for about 200 different fields. I have written 3 SQL Stored procedures for each data grouping, but what is the optimal way to combine the procedures together so it can be included on one report? To further compound the issue, parameters are used to allow users to identify which hotel they want to query and the date the information is effective.