SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Timetable report


Timetable report

Author
Message
spencepa
spencepa
SSC Journeyman
SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)

Group: General Forum Members
Points: 96 Visits: 207
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



Jeff Moden
Jeff Moden
SSC Guru
SSC Guru (85K reputation)SSC Guru (85K reputation)SSC Guru (85K reputation)SSC Guru (85K reputation)SSC Guru (85K reputation)SSC Guru (85K reputation)SSC Guru (85K reputation)SSC Guru (85K reputation)

Group: General Forum Members
Points: 85178 Visits: 41077
Lookup CROSS TAB in Books Online for starters...

--Jeff Moden

RBAR is pronounced ree-bar and is a Modenism for Row-By-Agonizing-Row.
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.
If you think its expensive to hire a professional to do the job, wait until you hire an amateur. -- Red Adair

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
spencepa
spencepa
SSC Journeyman
SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)

Group: General Forum Members
Points: 96 Visits: 207
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



Jeff Moden
Jeff Moden
SSC Guru
SSC Guru (85K reputation)SSC Guru (85K reputation)SSC Guru (85K reputation)SSC Guru (85K reputation)SSC Guru (85K reputation)SSC Guru (85K reputation)SSC Guru (85K reputation)SSC Guru (85K reputation)

Group: General Forum Members
Points: 85178 Visits: 41077
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 Row-By-Agonizing-Row.
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.
If you think its expensive to hire a professional to do the job, wait until you hire an amateur. -- Red Adair

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
toolman-352714
toolman-352714
SSC Veteran
SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)

Group: General Forum Members
Points: 249 Visits: 712
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
spencepa
spencepa
SSC Journeyman
SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)

Group: General Forum Members
Points: 96 Visits: 207
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...



Dave Balsillie
Dave Balsillie
Mr or Mrs. 500
Mr or Mrs. 500 (505 reputation)Mr or Mrs. 500 (505 reputation)Mr or Mrs. 500 (505 reputation)Mr or Mrs. 500 (505 reputation)Mr or Mrs. 500 (505 reputation)Mr or Mrs. 500 (505 reputation)Mr or Mrs. 500 (505 reputation)Mr or Mrs. 500 (505 reputation)

Group: General Forum Members
Points: 505 Visits: 430
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.
spencepa
spencepa
SSC Journeyman
SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)

Group: General Forum Members
Points: 96 Visits: 207
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:





Jeff Moden
Jeff Moden
SSC Guru
SSC Guru (85K reputation)SSC Guru (85K reputation)SSC Guru (85K reputation)SSC Guru (85K reputation)SSC Guru (85K reputation)SSC Guru (85K reputation)SSC Guru (85K reputation)SSC Guru (85K reputation)

Group: General Forum Members
Points: 85178 Visits: 41077
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 Row-By-Agonizing-Row.
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.
If you think its expensive to hire a professional to do the job, wait until you hire an amateur. -- Red Adair

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
jason_duffy
jason_duffy
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 40
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search