Quick Example to explain requirements:
Default query behaviour
-
Order Item
-
12345 <tr><td>Manuf0 Model0 Type0</td><td>Description0</td></tr>
-
12345 <tr><td>Manuf1 Model1 Type1</td><td>Description1</td></tr>
-
12346 <tr><td>Manuf0 Model0 Type0</td><td>Description0</td></tr>
Query behavior I want (but doubt is possible)
-
Order Item
-
12345 <tr><td>Manuf0 Model0 Type0</td><td>Description0</td></tr><tr><td>Manuf1 Model1 Type1</td><td>Description1</td></tr>
-
12346 <tr><td>Manuf0 Model0 Type0</td><td>Description0</td>
The table tags are for an external program (and to make things easier for me) and are created on the fly by the query.
There are 3 tables at work there;
Invoice - OrderNo(pk)
Order - OrderNo(fk) & ProdID(fk)
Product - ProdID(pk) & manuf & model & type & description
As a start, is this even possible with queries? It has to be done automatically, no user interaction necessary.
Thanks
Mandi