Feb 25, 2004 #1 naga5566 Technical User Mar 14, 2003 90 US Hi all I am using this and i am getting error ora:00937 not a single group group function.Any idea y this is so DECODE(Tab1.BOOK_VALUE,0,1,sum((Tab2.Coll/Tab1.Col1)*100)) Thanks Naga
Hi all I am using this and i am getting error ora:00937 not a single group group function.Any idea y this is so DECODE(Tab1.BOOK_VALUE,0,1,sum((Tab2.Coll/Tab1.Col1)*100)) Thanks Naga
Feb 25, 2004 #2 nimmy99 Technical User Oct 16, 2002 178 US Is this the correct syntax? Upvote 0 Downvote
Feb 25, 2004 Thread starter #3 naga5566 Technical User Mar 14, 2003 90 US It is this DECODE(Tab1.Col1,0,1,sum((Tab2.Coll/Tab1.Col1)*100)) Upvote 0 Downvote
Feb 25, 2004 #4 nimmy99 Technical User Oct 16, 2002 178 US What are you going to do? Which on this the search value and which one is the result ? Upvote 0 Downvote
Feb 25, 2004 Thread starter #5 naga5566 Technical User Mar 14, 2003 90 US Nimmy, Its like this .I am implementing this in a measure object in designer. If table1.col1 is 0 then it should be assumed as 1 using decode.Else i need to perform the calculation Sum(Tabl1e2.Coll/Tabl11.Col1)*100 I think this is bit clear now. Upvote 0 Downvote
Nimmy, Its like this .I am implementing this in a measure object in designer. If table1.col1 is 0 then it should be assumed as 1 using decode.Else i need to perform the calculation Sum(Tabl1e2.Coll/Tabl11.Col1)*100 I think this is bit clear now.
Feb 25, 2004 #6 Sridharan Technical User Dec 3, 2001 523 IN If you look at the SQL generated it will be not be grouping by Tab1.Col1... So put the Sum outside the Decode and it should work.... Sri Upvote 0 Downvote
If you look at the SQL generated it will be not be grouping by Tab1.Col1... So put the Sum outside the Decode and it should work.... Sri