OK... This has got to be simple.
I have a table laid out as follows.
Date G S TN SN GN
4/1/03 4.33 48 1 1 H
4/1/03 3.28 41 2 1 H
4/1/03 4.4 40 3 1 H
4/1/03 6.25 38 1 2 H
4/1/03 3.87 44 2 2 H
4/1/03 2.28 33 3 2 H
4/1/03 4.82 47 1 1 L
4/1/03 5.37 46 2 1 L
4/1/03 3.88 37 3 1 L
I want a query to have the following result.
As shown: Based on each date, SN, and GN value: (G1, G2, G3, etc. determined by TN)
Date G1 G2 G3 S1 S2 S3 SN GN
4/1/03 4.33 3.28 4.4 48 41 40 1 H
4/1/03 6.25 3.87 2.28 38 44 33 2 H
4/1/03 4.82 5.37 3.88 47 46 37 1 L
How do I query the table? Also, If the situation were reversed, how would it be queried?
I have a table laid out as follows.
Date G S TN SN GN
4/1/03 4.33 48 1 1 H
4/1/03 3.28 41 2 1 H
4/1/03 4.4 40 3 1 H
4/1/03 6.25 38 1 2 H
4/1/03 3.87 44 2 2 H
4/1/03 2.28 33 3 2 H
4/1/03 4.82 47 1 1 L
4/1/03 5.37 46 2 1 L
4/1/03 3.88 37 3 1 L
I want a query to have the following result.
As shown: Based on each date, SN, and GN value: (G1, G2, G3, etc. determined by TN)
Date G1 G2 G3 S1 S2 S3 SN GN
4/1/03 4.33 3.28 4.4 48 41 40 1 H
4/1/03 6.25 3.87 2.28 38 44 33 2 H
4/1/03 4.82 5.37 3.88 47 46 37 1 L
How do I query the table? Also, If the situation were reversed, how would it be queried?