vincesavoldi
Registered User.
- Local time
- Today, 13:17
- Joined
- Jul 8, 2014
- Messages
- 14
Hi all, I am having an issue sorting out some data..
I can do it using multiple queries but I would love to find a way to do it in a single query... Sorry If I am not using proper terms but Being very new at this i have not learned everything yet
I have formulated a couple sample tables to show what my source data looks like and the result I would like to get. (See below)
I have a table with items and pricing. Each item will have multiple lines showing the various prices with another field determining what the price is related to.
I would like to query the table to output a table showing a single item with the various pricings each in a field. To toss another variable into the mix there are multiple sets of data per item based on a dataid field. So the source has , Item,, Type, Price and dataID.
I want to show Item, Price1, Price2,Price3, for a specific itemID.
Source Data
item type price dataID
101 1 5.01 aaa
101 2 6.75 aaa
101 3 9.95 aaa
102 2 7.25 aaa
102 3 13.25 aaa
103 1 19.95 aaa
103 2 7.25 aaa
103 3 8.32 aaa
101 1 5.01 bbb
101 2 6.75 bbb
101 3 9.95 bbb
102 2 7.25 bbb
102 3 13.25 bbb
103 1 19.95 bbb
103 2 7.25 bbb
103 3 8.32 bbb
Resulting data
item price 1 price 2 price 3
101 5.01 6.75 9.95
102 7.25 13.25
103 19.95 7.25 8.32
I would like to filter for only the aaa
It's been driving me crazy trying to figure out how to do it in a single query :banghead:
thanks in advance, Vince
I can do it using multiple queries but I would love to find a way to do it in a single query... Sorry If I am not using proper terms but Being very new at this i have not learned everything yet

I have formulated a couple sample tables to show what my source data looks like and the result I would like to get. (See below)
I have a table with items and pricing. Each item will have multiple lines showing the various prices with another field determining what the price is related to.
I would like to query the table to output a table showing a single item with the various pricings each in a field. To toss another variable into the mix there are multiple sets of data per item based on a dataid field. So the source has , Item,, Type, Price and dataID.
I want to show Item, Price1, Price2,Price3, for a specific itemID.
Source Data
item type price dataID
101 1 5.01 aaa
101 2 6.75 aaa
101 3 9.95 aaa
102 2 7.25 aaa
102 3 13.25 aaa
103 1 19.95 aaa
103 2 7.25 aaa
103 3 8.32 aaa
101 1 5.01 bbb
101 2 6.75 bbb
101 3 9.95 bbb
102 2 7.25 bbb
102 3 13.25 bbb
103 1 19.95 bbb
103 2 7.25 bbb
103 3 8.32 bbb
Resulting data
item price 1 price 2 price 3
101 5.01 6.75 9.95
102 7.25 13.25
103 19.95 7.25 8.32
I would like to filter for only the aaa
It's been driving me crazy trying to figure out how to do it in a single query :banghead:
thanks in advance, Vince