data67 has asked for the wisdom of the Perl Monks concerning the following question:
<br> 456234567!Bob Smith!Engineering!Graduate 852234567!Ivan Milla!Business!Undergrad 123234567!Sergio Veara!Arts!Graduate 987234567!Richard Thompson!Economics!undergrad 963434567!Patrick Klivert!Economics!Graduate 789234567!Janfranco Vialli!Engineering!Graduate
In the above datafile we have SS#, name, major and status. Now look at the student information file:
<br> <br> 45623456!COMP8769!A!Dr.Smith!MWF!10:00 45623456!COMP7960!B!Dr.Smith!MWF!11:00 45623456!COMP7100!B!Dr.Rose!MWF!1:00 987234567!ECON6900!A!Dr.Jones!W!9:00 45623456!COMP7600!A!Dr.Gillian!MWF!9:00 852234567!BUS4000!C!Dr.Rossa!M!2:00 789234567!BUS4000!A!Dr.Rossa!M!2:00
In the above file, we collected the class info. about the students we have in the student datafile. Class-info file had: SS#,class,grade, Instructor,Days,TIme.
Problem
What i am trying to do is have a report that sorts both of these files in a
few different ways automatically going through all the data. Here are
examples of what kind of output i am looking for.
Type1 (Sort Students by a particular KEY i.e. By a class):
|
Students who took BUS4000
|
||
|
SCHOOL
|
Students
|
Other Data
|
| Engineering | Janfranco Vialli | A, Dr.Rosa |
| Business | Ivan Milla | ... |
| etc. | ||
|
Students who took COMP8769
|
||
|
SCHOOL
|
Students
|
Other Data
|
| Engineering | Bob Smith | A, Dr.Rosa |
| etc. | ||
Type2 (Regular Sort By all students):
|
SCHOOL
|
Students
|
Other Data
|
| Engineering | Janfranco Vialli | A, Dr.Rosa, BUS4000 |
| Bob Smith | A,Dr.Smith,COMP8769 B,Dr.Smith,COMP7960 etc. |
|
| Business | Ivan Milla | ... |
| Arts | Sergio Veara | ... |
| Economics | Richard Thompson | A, Dr. Jones,ECON6900 |
| Patrick Klivert | ... | |
| etc. | ||
As you see in the aboove example, all of this output should appear on one page. As you saw in Type1, i need to sort also based on a particular falue in the (student-info) datafile also. I have done soring like this in the past but this is a bit complicated from what i have been use to. As always any input will be great.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Complex Soring/Reporting
by dws (Chancellor) on Apr 17, 2002 at 17:01 UTC | |
|
Re: Complex Soring/Reporting
by tachyon (Chancellor) on Apr 17, 2002 at 17:35 UTC | |
|
Re: Complex Soring/Reporting
by data67 (Monk) on Apr 17, 2002 at 16:45 UTC | |
by Juerd (Abbot) on Apr 17, 2002 at 17:01 UTC | |
|
Re: Complex Sorting/Reporting
by graff (Chancellor) on Apr 20, 2002 at 04:02 UTC | |
|
Re: Complex Sorting/Reporting
by data67 (Monk) on Apr 19, 2002 at 15:22 UTC | |
|
Re: Complex Soring/Reporting
by data67 (Monk) on Apr 17, 2002 at 18:41 UTC | |
by dsb (Chaplain) on Apr 17, 2002 at 19:14 UTC | |
by data67 (Monk) on Apr 17, 2002 at 20:25 UTC |