Home » SQL & PL/SQL » SQL & PL/SQL » how to fix ORA-00904 Error (oracle10g)
how to fix ORA-00904 Error [message #364617] Tue, 09 December 2008 05:09 Go to next message
Messages: 2
Registered: December 2008
Location: Malaysia
Junior Member

hi all...

i got problem that when i run the query this message will appeared
Message: ORA-00904: "SUM": invalid identifier

and this is my query:-

SELECT v.timeid, v.insid insid,q.name,SUM(DECODE(v.indid, 1702, v.value, 0)) as RESPONSETIME,SUM(DECODE(v.indid, 1688, v.value, 0)) as TOTALBYTES,SUM(DECODE(v.indid, 1689, v.value, 0)) as THROUGHPUT

FROM twtdatavalues v,twtinstances q

WHERE (v.insid = 12259947)

AND (v.insid = q.id)

AND (v.flag = 1)

AND (v.timeid > 7244640 AND v.timeid <= 7289280)

AND (v.displayrate = 30)

AND (v.indid in (1702,1688,1689))

group by v.timeid, v.insid,q.name

so,plzz help how to fix it..
Re: how to fix ORA-00904 Error [message #364618 is a reply to message #364617] Tue, 09 December 2008 05:14 Go to previous message
Michel Cadot
Messages: 63908
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
From your previous post:
Michel Cadot wrote on Tue, 02 December 2008 14:44
Before Please read OraFAQ Forum Guide, especially "How to format your post?" section.
Make sure that lines of code do not exceed 80 characters when you format.
Indent the code (See SQL Formatter) and align the columns in result.
Use the "Preview Message" button to verify.
Also always post your Oracle version (4 decimals).

Post a test case: create table and insert statements along with the result you want with these data.


So do it. Data not needed but Use SQL*Plus and copy and paste your session.
Previous Topic: Copying almost all columns from row to new row to the same table
Next Topic: commit inside a trigger (merged 3)
Goto Forum:

Current Time: Fri Oct 21 08:55:25 CDT 2016

Total time taken to generate the page: 0.12464 seconds