Mmmm, maybe not the best title for the problem but here is what I've got :
SELECT Item, I1, V1, I2, V2, I3, V3, I4, V4, I5, V5 FROM MyTable ;
Simple, however I now want to return only One set of Items (I) and one set of Prices (P) from the above result set ordered on P ASC.
ROW 1 Item A, 0, 1.5, 1, 1.7, 2, 1.9, 3, 2.1, 4, 2.9, 5, 4.3
ROW 2 Item B, 1, 1.6, 1, 1,7, 2, 2.0, 3, 2.1, 4, 2.5, 7, 3.8
For example:
ROW 1, Item A, 0, 1.5
ROW 2, Item B, 1, 1.6
ROW 3, Item B, 1, 1.7
ROW 4, Item A, 1, 1.7
ROW 5, Item A, 2, 1.9
ROW 6, Item B, 2, 2.0
ROW 7, Item A, 3, 2.1
ROW 8, Item B, 3, 2.1
ROW 7, Item B, 4, 2.5
ROW 8, Item A, 4, 2.9
...
Anyone got any ideas?
woogoo
SELECT Item, I1, V1, I2, V2, I3, V3, I4, V4, I5, V5 FROM MyTable ;
Simple, however I now want to return only One set of Items (I) and one set of Prices (P) from the above result set ordered on P ASC.
ROW 1 Item A, 0, 1.5, 1, 1.7, 2, 1.9, 3, 2.1, 4, 2.9, 5, 4.3
ROW 2 Item B, 1, 1.6, 1, 1,7, 2, 2.0, 3, 2.1, 4, 2.5, 7, 3.8
For example:
ROW 1, Item A, 0, 1.5
ROW 2, Item B, 1, 1.6
ROW 3, Item B, 1, 1.7
ROW 4, Item A, 1, 1.7
ROW 5, Item A, 2, 1.9
ROW 6, Item B, 2, 2.0
ROW 7, Item A, 3, 2.1
ROW 8, Item B, 3, 2.1
ROW 7, Item B, 4, 2.5
ROW 8, Item A, 4, 2.9
...
Anyone got any ideas?
woogoo