sql server - SQL Query for SSRS report -


I would like to create a ssrs report below - I need to show the following columns -

  | Tickets | Tickets | | Scan on Scan on Attraction | Hour | 2014/09/08 | 09/09/2014 | 09/10/2014 | Day 4 || Day 5 || Day 6 || 09/14/2014 Monday Tuesday Wednesday ...................... Sunday U. Mukesham | 9: 00am | 10 | 40 | 10:00 AM | .. .. .. .. .. 23:00 am   

I will get a start date and end date from the user. Now my problem is that I want a query for 7 days from the start date chosen by the user for the end date and for each hour, i.e. For 1 day it will be 24 hours, so the total 24 * 7 hours. When I display the values ​​for the scan in my existing SQL query, it displays for only one day. How can I do this for 7 days, and the value of the scan of that date should be displayed in the respective week days. Monday or Tuesday and so on. I am not able to get every date and change in the value of scans each hour, so I am confused and mixing everyone here. The values ​​of each hour should be different every day and there is only one scan column, so how different values ​​will be displayed in the table.

I used the pivot table to change the name of the week from the columns of the day to the different columns.

Then the problem arises for the SSRS report how it can be executed in an SSR report where the rows are for each hour and the dates of the selected week are displayed in the column how do I get in SSRS Can i do I am receiving only for 24 hours, but I want to report that for all 24 hours, go for 7 days and every week in the day column should be displayed for the price for each hour.

Thank you.

A parameter is called @startdate in its stored procedure.

Make @and like this in SQL << >> DECLARE @EndDate DATETIME SET @EndDate = DATEADD ("D", 7, @StartDet)

Return information of your date Use the Grouping feature in SSRS to display the data again in one hour and one day column.

I hope this will help you to move your problem further.

Bobby

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -