Hallo - greetings from Germany and sorry for my English (school knowledge only)
When I have a table like the following one (3 fields, 3 rows):
Record Car color Plant
----------------------------------------------------
1 Mercedes green A
2 VW yellow B
3 Ford black C
how can I write a program, which shows me all possible combinations (27 in this case) from
these few lines into a new table which should look like this:
Mercedes green A
Mercedes green B
Mercedes green C
Mercedes yellow A
Mercedes yellow B
Mercedes yellow C
Mercedes black A
Mercedes black B
Mercedes black C ....and so on, now with
VW green A
VW green B ......and then Ford.....so that you have filled 27 lines.
Would be great if this program could also do it automatically when the table has 4 or more
rows - but I would already be happy when I could find out, how the loops should be
programmed (perhaps putting each field-column into a separate array? But how in the hell
then to put it together?)
Thanks for any idea....
Klaus
When I have a table like the following one (3 fields, 3 rows):
Record Car color Plant
----------------------------------------------------
1 Mercedes green A
2 VW yellow B
3 Ford black C
how can I write a program, which shows me all possible combinations (27 in this case) from
these few lines into a new table which should look like this:
Mercedes green A
Mercedes green B
Mercedes green C
Mercedes yellow A
Mercedes yellow B
Mercedes yellow C
Mercedes black A
Mercedes black B
Mercedes black C ....and so on, now with
VW green A
VW green B ......and then Ford.....so that you have filled 27 lines.
Would be great if this program could also do it automatically when the table has 4 or more
rows - but I would already be happy when I could find out, how the loops should be
programmed (perhaps putting each field-column into a separate array? But how in the hell
then to put it together?)
Thanks for any idea....
Klaus