Q
QB
I have a table, 'tbl_data' which has the following fields:
UnitNo, Mot1Date, Mot1Hrs, Mot1No,Mot2Date, Mot2Hrs,Mot2No
Example Data
123 1/22/2010 2223 1 1/22/2010 3411 1
332 1/20/2010 156 1 1/18/2010 5467 2
I need to build a query that will list the Units per date also indicating
which Mot(1or2orboth) by Mot(x)No.
MotNo UnitNo Date Mot(x)
1 123 1/22/2010 Mot1 & Mot2
1 332 1/20/2010 Mot1
2 332 1/18/2010 Mot2
Could someone show me an example of the SQL statement which I could use to
build such an output of data.
Thank you for the help,
QB
UnitNo, Mot1Date, Mot1Hrs, Mot1No,Mot2Date, Mot2Hrs,Mot2No
Example Data
123 1/22/2010 2223 1 1/22/2010 3411 1
332 1/20/2010 156 1 1/18/2010 5467 2
I need to build a query that will list the Units per date also indicating
which Mot(1or2orboth) by Mot(x)No.
MotNo UnitNo Date Mot(x)
1 123 1/22/2010 Mot1 & Mot2
1 332 1/20/2010 Mot1
2 332 1/18/2010 Mot2
Could someone show me an example of the SQL statement which I could use to
build such an output of data.
Thank you for the help,
QB