thomzon
09-06-2005, 09:56 AM
Hi,
I have a rather complex question.
I need to get the following to work:
I have a main query where n number of id's can be choosen and the corresponding data showed in a table inside a repeater - so far that works great.
However I need to integrate an extra query that gets some details for each single id and lists it together with the main data for the id. This data should I guess be in a repeater inside the main repeater.
However I am wondering how I should program this. Should I make a special kind of sql-query or do I need to follow a certain procedure to get it to work?
To make the problem a bit easier to understand here is an example:
id: 3
car: BMW
driver: Mitch
- races: Indianapolis
Monte Carlo
Nürburgring
id: 4
car: Mercedes
driver: Hans
- races: Daytona
Monte Carlo
San Marino
the "subquery" is sorted by date.
I have a rather complex question.
I need to get the following to work:
I have a main query where n number of id's can be choosen and the corresponding data showed in a table inside a repeater - so far that works great.
However I need to integrate an extra query that gets some details for each single id and lists it together with the main data for the id. This data should I guess be in a repeater inside the main repeater.
However I am wondering how I should program this. Should I make a special kind of sql-query or do I need to follow a certain procedure to get it to work?
To make the problem a bit easier to understand here is an example:
id: 3
car: BMW
driver: Mitch
- races: Indianapolis
Monte Carlo
Nürburgring
id: 4
car: Mercedes
driver: Hans
- races: Daytona
Monte Carlo
San Marino
the "subquery" is sorted by date.