Hi
Looking for a query to retrieve records from tables and show them on the same row in columns.
I'm using linked tables to a larger system and cannot change main DB.
eg.
Table 1(T1) has name and personid fields.
Table 2(T2) has timesheetid and personid
Table 3(T3) has timesheetid, Lineid, description
The problem is T3 has variable multiple lines & descriptions per timesheet and I want them showing in columns on ONE row
eg.
T1 T2 T3 T3 T3 T3
name timesheet lineid description lineid description
joe 1 1 rate a 2 rate b
pete 2 1 rate b
charlie 3 1 rate a 2 rate b
I hope that this makes sense.
I'm hoping to write an ASP web page to show the data as it has to be exported to excel in this format to upload to a 3rd party system. Therefore I CANNOT change the layout or the database!!
Regards
Looking for a query to retrieve records from tables and show them on the same row in columns.
I'm using linked tables to a larger system and cannot change main DB.
eg.
Table 1(T1) has name and personid fields.
Table 2(T2) has timesheetid and personid
Table 3(T3) has timesheetid, Lineid, description
The problem is T3 has variable multiple lines & descriptions per timesheet and I want them showing in columns on ONE row
eg.
T1 T2 T3 T3 T3 T3
name timesheet lineid description lineid description
joe 1 1 rate a 2 rate b
pete 2 1 rate b
charlie 3 1 rate a 2 rate b
I hope that this makes sense.
I'm hoping to write an ASP web page to show the data as it has to be exported to excel in this format to upload to a 3rd party system. Therefore I CANNOT change the layout or the database!!
Regards