| SQL Syntax Error [message #571942] |
Tue, 04 December 2012 13:07  |
 |
Saya22
Messages: 14 Registered: December 2012 Location: London
|
Junior Member |
|
|
Hello,
I'm working on Oracle SQL Developer: ODMiner. I keep getting a syntax error with the following code,
CREATE TABLE FINAL_WEBLOG AS
select SESSION_DT, C_IP, CS_USER_AGENT,
LISTAGG(WEB_LINK, ' ')
WITHIN GROUP (ORDER BY C_IP, CS_USER_AGENT) "WEB_LINKS",
FROM WEBLOG_VIEWS
GROUP BY C_IP, CS_USER_AGENT, SESSION_DT
ORDER BY SESSION_DT
I understand if it's the semicolon that is missing at the end, but I'm not sure on how I can rephrase it correctly.
The error I got was,
Error at Command Line:5 Column:2
Error report:
SQL Error: ORA-00936: missing expression
00936. 00000 - "missing expression"
*Cause:
*Action:
|
|
|
|
|
|
|
|
|
|
|
|
|
|