Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Reporting Services
»
Reporting Services
»
Timetable report
11 posts, Page 1 of 2
1
2
»»
Timetable report
Rate Topic
Display Mode
Topic Options
Author
Message
spencepa
spencepa
Posted Tuesday, March 04, 2008 5:50 AM
SSC Rookie
Group: General Forum Members
Last Login: Thursday, January 24, 2013 3:20 PM
Points: 33,
Visits: 165
Looking for some advise on how to construct a timetable report for students.
Normal stuff - 7 days a week down the left, lesson schedules from 8am to 9pm across the top. Lesson 3 on a Monday(930 - 1030)can be different time/length to Tuesday lesson 3 (945 -1030). A students could have 1 lesson or 20 lessons.
Cheers! P
Post #463696
Jeff Moden
Jeff Moden
Posted Tuesday, March 04, 2008 10:03 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Yesterday @ 9:57 PM
Points: 32,893,
Visits: 26,771
Lookup CROSS TAB in Books Online for starters...
--Jeff Moden
"
RBAR
is pronounced "ree-bar" and is a "Modenism" for "
R
ow-
B
y-
A
gonizing-
R
ow".
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #463893
spencepa
spencepa
Posted Tuesday, March 04, 2008 4:06 PM
SSC Rookie
Group: General Forum Members
Last Login: Thursday, January 24, 2013 3:20 PM
Points: 33,
Visits: 165
you mean a matrix? i have already put that together (couple of years RS exp.). The issue is to do with the length of the period
This is what i want . ...........9.............10...........11..........12...........1...........2..........3............4...........5.........6
Mon maths english
Tue SSRS tutorial
Wed French
Thur science
Fri tutorial
- Student may only have lessons on Mon, Tue, Fri (got this to work by unioning data from a timetable setup table
- Sessions might not be hour based eg Monday period 2 starts at 10 but oon a friday it starts at 1020
Matrix seems to work but if a student has a 15 min tutorial, this fills a whole column the same as a hour eg
..........9.............10.........1045.........11..........1115......12...........1...........2........
Mon maths english
Tue SSRS tutorial
Wed French
Thur science
Fri tutorial
Post #464140
Jeff Moden
Jeff Moden
Posted Tuesday, March 04, 2008 5:18 PM
SSC-Dedicated
Group: General Forum Members
Last Login: Yesterday @ 9:57 PM
Points: 32,893,
Visits: 26,771
spencepa (3/4/2008)
Matrix seems to work but if a student has a 15 min tutorial, this fills a whole column the same as a hour
What do you want it to do?
--Jeff Moden
"
RBAR
is pronounced "ree-bar" and is a "Modenism" for "
R
ow-
B
y-
A
gonizing-
R
ow".
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #464160
toolman-352714
toolman-352714
Posted Wednesday, March 05, 2008 7:38 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Monday, March 12, 2012 7:47 AM
Points: 138,
Visits: 696
Does your format demand the time periods across the top and days down the side? If it doesn't, I'd try it the other way around. It seems to me it'd be easier to have the static seven days fixed as headers and the dynamic times on the side.
Also, I'm not sure how I'd do it, but I'm thinking some kind of bar or line chart might be appropriate here.
Sorry this is more hypothesis than concrete answers.
Hope it helps some though.
Good luck
toolman
Numbers 6:24-26
Post #464431
spencepa
spencepa
Posted Wednesday, March 05, 2008 7:53 AM
SSC Rookie
Group: General Forum Members
Last Login: Thursday, January 24, 2013 3:20 PM
Points: 33,
Visits: 165
existing thick client app:
The issue is the classes that cross or start in the middle of time periods - eg a lessons goes from 930-1045 and the next one 1050-1230. The example crosses the boundaries of 1100 but also starts in the middle of 9-10... The next day classes might start at 9am....
The way they are doing it the aspx app is draw a grid and overlay boxes with co-ordinates (eg 80 left, 100 wide) on top....
The chart is worth investigating...
Post #464450
Dave Balsillie
Dave Balsillie
Posted Thursday, March 06, 2008 10:22 AM
SSC Veteran
Group: General Forum Members
Last Login: Friday, May 10, 2013 11:11 AM
Points: 215,
Visits: 401
A few suggestions:
- First, consider in investing in a license for Dundas Controls. These folks sold the stripped down version used in reporting services to Microsoft, so they know the technology. Their current control set is very feature rich, with nice rendering capabilities.
- You'll want to do a "bar chart", where you're converting the times down to a fine enough level of detail. With the Dundas controls you'll have more options of text over, auto movements, etc. but I believe you can achieve the desired effect in the stock control.
- With "short time periods", you'll probably want to put the longer labels into a text popup. In general (for ease of design), I'd stick with session Ids (i.e. MAT101) for the fixed labels, and if available put the longer definition in the text popup (i.e. Mathematics 101, Room 12) or a legend.
- You didn't say what your export or print expectations. For export, I'd restrict it to PDF (why worry about the Excel in this case). Printing almost demands the legend.
Good luck.
Post #465341
spencepa
spencepa
Posted Tuesday, March 11, 2008 3:45 AM
SSC Rookie
Group: General Forum Members
Last Login: Thursday, January 24, 2013 3:20 PM
Points: 33,
Visits: 165
thanks for the pointers.
Dundas is a no go ATM - we are redeveloping a product and it needs to use vanilla RS, then we will offer consultancy, fleshing them out. We have a legacy product which has over 500 report type pages!!!
Anyway, got it pretty much done now, though it is abit basic. I used a table function to return days, hours, 0 and 30 minute rows to structure the matrix
eg
day, hour, minute, datetime
2,8,30, 1900/01/01 08:30.000
2,9,00, 1900/01/01 09:00.000
2,9,30, 1900/01/01 09:30.000
....
I then left outer joined to the above on the day and between the lesson start and end (with a little hacking for lessons that start at 1045), creating a txt string of start/end/room/tutor etc
Finally i can run an update where there are duplicate day/hour/minute rows and concatenate the txt together (eg 9-1015 Engl01 R101, 1015-1100 MATH03 R209). Rough looking with not the best dataset:
Post #467245
Jeff Moden
Jeff Moden
Posted Tuesday, March 11, 2008 5:06 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Yesterday @ 9:57 PM
Points: 32,893,
Visits: 26,771
Note that it matters, but I like that vertical format better. More closely resembles even preformatted hard-copy schedules.
--Jeff Moden
"
RBAR
is pronounced "ree-bar" and is a "Modenism" for "
R
ow-
B
y-
A
gonizing-
R
ow".
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #467272
jason_duffy
jason_duffy
Posted Tuesday, May 31, 2011 9:01 AM
Forum Newbie
Group: General Forum Members
Last Login: Friday, January 27, 2012 12:24 AM
Points: 1,
Visits: 27
Hi There Spencepa - -I assume the report you are trying to create is based on REMS student records system - We are in the process of trying to create a similar thing - i know its a bit cheeky but any chance of sharing your RDL file with us as that is exactly what we after !
Regards
Duffster
duffster28@hotmail.com
Post #1117487
« Prev Topic
|
Next Topic »
11 posts, Page 1 of 2
1
2
»»
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.