PC Review


Reply
Thread Tools Rate Thread

Crosstab or not?

 
 
Deac
Guest
Posts: n/a
 
      11th Feb 2012
Non-profit work for a dance school.
One Query based on three tables but used twice.
I need to automate it more than it is.
I can put in a class name and get a list of the students in that
class. (Good)
(I can do a MakeTable to have just the Name and ID for each of them.)
I can change it to put in each student ID and I get a list of each
students' classes (Good)
What I get is:
Class ID Name ClassAll
class1 1248 John Doe Jazz
class1 1469 Mary Phillips Jazz
class1 1469 Mary Phillips Modern
class1 1553 Terri Johns Jazz
class1 1553 Terri Johns Hip-Hop
class1 1553 Terri Johns Modern

What I need on the Report is:
ID Name Class1 Class2 Class3
Class4
1248 John Doe Jazz
1469 Mary Phillips Jazz Modern
1553 Terri Johns Jazz Hip-Hop Modern

This is getting over my head but my questions are:
Do I need the MakeTable?
Should this be done with a Crosstab, to get this layout, or is there a
better way?
Any and all help is appreciated!
 
Reply With Quote
 
 
 
 
Phil Hunt
Guest
Posts: n/a
 
      11th Feb 2012
this is classic case for crosstab


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:07 PM.