I
Intrinicity
I'm sure this would be a common requirement
I have a table (imported from excel) that is a pricing grid for
blinds. The header row at the top is widths(mm) and the header row
down the left is heights(mm). The data is the price for each
combination. The import process makes the widths the column names.
var1 600 800 1200 ...
300 $60 $80 $100
600 $80 $100 $120
900 $120 $140 $160
..
..
all I want to do is to take that table and make it flattened, like
this:
height width price
300 600 $60
300 800 $80
300 1200 $100
600 600 $80
600 800 $100
600 1200 $120
900 600 $120
900 800 $140
900 1200 $160
I can't think how to do this in a query - I could take the flat
version and create a crosstab to go the other way, but not in this
direction. Any clues - I don't want to change too much about the way
the imported excel file looks because I have no control over that (I
already discard miscellaneous headings and junk before I import it)
Hope you can help
I have a table (imported from excel) that is a pricing grid for
blinds. The header row at the top is widths(mm) and the header row
down the left is heights(mm). The data is the price for each
combination. The import process makes the widths the column names.
var1 600 800 1200 ...
300 $60 $80 $100
600 $80 $100 $120
900 $120 $140 $160
..
..
all I want to do is to take that table and make it flattened, like
this:
height width price
300 600 $60
300 800 $80
300 1200 $100
600 600 $80
600 800 $100
600 1200 $120
900 600 $120
900 800 $140
900 1200 $160
I can't think how to do this in a query - I could take the flat
version and create a crosstab to go the other way, but not in this
direction. Any clues - I don't want to change too much about the way
the imported excel file looks because I have no control over that (I
already discard miscellaneous headings and junk before I import it)
Hope you can help