Guest_imported
New member
- Jan 1, 1970
- 0
I need to create a second table from a table. Table 1 has multiple rows for each product in column 1 and non-numeric data in column 2. Table 2 needs to have 1 row for each distinct value in column 1 and be followed the first 10 values found from column 2. I have placed an example below.
Can I do it in ANSI SQL?
Table 1
Prod# value
A a
A b
A c
A d
B a
B c
B d
B e
Table 2
Prod# val1 val2 val3 val4 val5 . . . . val10
A a b c d . . . . . . .
B a c d e . . . . . . .
[sig][/sig]
Can I do it in ANSI SQL?
Table 1
Prod# value
A a
A b
A c
A d
B a
B c
B d
B e
Table 2
Prod# val1 val2 val3 val4 val5 . . . . val10
A a b c d . . . . . . .
B a c d e . . . . . . .
[sig][/sig]