R
Rob
I'm having a lot of trouble getting my question answered,
so I'll start by asking this:
I have a table that has 3 fields, RecordID, UtilityType,
and Consumption. Normally I would have 3 different
utility types, gas, water, and electric. Can I run a
query that will show per RecordID, each utility type in
their own column? I don't want to use a crosstab query,
because I want to include other values later on and not
just consumption(actual cost of that consumption, for
example).
For example, a table may have this
RecordID UtilityType Consumption
1 Gas 1000
1 Water 500
2 Gas 950
2 Electric 300
2 Water 525
And get a result of
RecordID Gas Water Electric
1 1000 500 0
2 950 525 300
Thanks to anyone who can help me. I've been struggling
with this for a few days now.
so I'll start by asking this:
I have a table that has 3 fields, RecordID, UtilityType,
and Consumption. Normally I would have 3 different
utility types, gas, water, and electric. Can I run a
query that will show per RecordID, each utility type in
their own column? I don't want to use a crosstab query,
because I want to include other values later on and not
just consumption(actual cost of that consumption, for
example).
For example, a table may have this
RecordID UtilityType Consumption
1 Gas 1000
1 Water 500
2 Gas 950
2 Electric 300
2 Water 525
And get a result of
RecordID Gas Water Electric
1 1000 500 0
2 950 525 300
Thanks to anyone who can help me. I've been struggling
with this for a few days now.