on 04-06-2010 2:00 PM
Greetings,
I'm trying to create a command table, in Business View Manager, that is a view of the FACTS table.
Command Table:
Time_ID
Measure_ID
Valuetype_ID
Amount
I want to sum all duplicate fields by amount, so I try to create a command table with the following code:
select dbo.facts.Time_ID, dbo.facts.measure_ID, dbo.facts.valuetype_ID, sum(dbo.facts.sum)
From dbo.facts
group by facts.Time_ID
and I get the error "SQL syntax error returned. Please modify ant try again"
But, if I isolate de expression without the field sum(...) or only with the sum field it returns the result.
Can anyone help me?
Thanks.
Solved,
I have to put all fields except the amount field in the group by expression 😃
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.