R
RC
I'm not quite getting a handle on how to transpose, or pivot the
CLASS_BUILDER table in example #1 to get the desired results for the
SCHEDULES table shown in example # 2. The real table has 12 more data
elements than are shown in the examples, such as Gender, Birth Date,
Ethnicity, etc, which are all one per record like Grade and will need to be
kept with the record as well. It is as though the Sect_ID field is the one
that needs to be transposed, or pivoted. The Sect_ID records can vary as
little as one per student to many more than the four Sect_IDs shown in
example # 2.
EXAMPLE # 1:
tblCLASS_BUILDER
Stut_ID Status Name Grade School Sect_ID
123 A Smith John 03 4050 2302-01
123 A Smith John 03 4050 2701-02
123 A Smith John 03 4050 4102-04
456 A Jones David 05 4050 2705-03
456 A Jones David 05 4050 2302-02
456 A Jones David 05 4050 1703-05
456 A Jones David 05 4050 4502-01
789 A Cook Jane 10 3050 1702-02
789 A Cook Jane 10 3050 4102-03
EXAMPLE # 2:
tblSCHEDULES
Stu_ID Status Name Grade School Sect_ID1 Sect_ID2 Sect_ID3
Sect_ID4
123 A Smith John 03 4050 2302-01 2701-02 4102-04
456 A Jones David 05 4050 2705-03 2302-06 1703-05
4502-01
789 A Cook Jane 10 3050 1702-02 4102-03
I wasn't sure if I should have posted this one here, yet I will greatly
appreciate all the help given.
Thanks,
RC
CLASS_BUILDER table in example #1 to get the desired results for the
SCHEDULES table shown in example # 2. The real table has 12 more data
elements than are shown in the examples, such as Gender, Birth Date,
Ethnicity, etc, which are all one per record like Grade and will need to be
kept with the record as well. It is as though the Sect_ID field is the one
that needs to be transposed, or pivoted. The Sect_ID records can vary as
little as one per student to many more than the four Sect_IDs shown in
example # 2.
EXAMPLE # 1:
tblCLASS_BUILDER
Stut_ID Status Name Grade School Sect_ID
123 A Smith John 03 4050 2302-01
123 A Smith John 03 4050 2701-02
123 A Smith John 03 4050 4102-04
456 A Jones David 05 4050 2705-03
456 A Jones David 05 4050 2302-02
456 A Jones David 05 4050 1703-05
456 A Jones David 05 4050 4502-01
789 A Cook Jane 10 3050 1702-02
789 A Cook Jane 10 3050 4102-03
EXAMPLE # 2:
tblSCHEDULES
Stu_ID Status Name Grade School Sect_ID1 Sect_ID2 Sect_ID3
Sect_ID4
123 A Smith John 03 4050 2302-01 2701-02 4102-04
456 A Jones David 05 4050 2705-03 2302-06 1703-05
4502-01
789 A Cook Jane 10 3050 1702-02 4102-03
I wasn't sure if I should have posted this one here, yet I will greatly
appreciate all the help given.
Thanks,
RC