03Explorer
Technical User
I am new to Informix and find that Aqua Data Studio 4.7.2 does not give enough information if error occurs, just a generic Error response with no idea what and where there is an error.
HELP!
HELP!
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
CREATE TEMP TABLE tempSummary ( OrdBy int, Dates date, Dialed_number_id int, Options Char(75), Calls int, Element Char(255) );
INSERT INTO tempSummary Values(0, '1900/01/01', 0, 'ACN ', 0, 'Executed ' );
SELECT
1 as OrdBy,
c.callstartdate as dates,
c.dnis as Dialed_number_id,
'Total Nubmer of calls' as Options,
COUNT( DISTINCT s.sessionid ) as Calls,
'none' as Element
FROM
call c,
vxmlsession s
WHERE
c.callguid = s.callguid AND c.callstartdate = s.callstartdate
GROUP BY
c.callstartdate,
c.dnis
ORDER By
c.callstartdate ASC,
c.DNIS ASC
INTO TEMP tempSummary
INSERT INTO tempSummary
SELECT
1
, c.callstartdate
, c.dnis
, 'Total Nubmer of calls'
, COUNT(DISTINCT s.sessionid)
, 'none'
FROM
call c
, vxmlsession s
WHERE
c.callguid = s.callguid AND c.callstartdate = s.callstartdate
GROUP BY
c.callstartdate
, c.dnis
ORDER BY
c.callstartdate ASC
, c.DNIS ASC
SELECT
1 AS OrdBy
, c.callstartdate
, c.dnis
, 'Total Nubmer of calls' AS Options
, COUNT(DISTINCT s.sessionid) AS Calls
, 'none' AS Element
FROM
call c
, vxmlsession s
WHERE
c.callguid = s.callguid AND c.callstartdate = s.callstartdate
GROUP BY
c.callstartdate
, c.dnis
ORDER BY
c.callstartdate ASC
, c.DNIS ASC
INTO TEMP tmptbl;
INSERT INTO tempSummary SELECT * FROM tmptbl;
DROP TABLE tmptbl;
e.elementname + ', ' + e.exitstate
INSERT INTO tempSummary SELECT
11,
c.callstartdate,
c.dnis,
'Total Notification calls',
COUNT( s.sessionid ),
e.elementname || ', ' || e.exitstate
FROM
call c,
vxmlsession s,
vxmlelement e
WHERE
e.sessionid = s.sessionid AND e.callstartdate = s.callstartdate
AND e.callguid = c.callguid AND e.callstartdate = c.callstartdate
AND c.callguid = s.callguid AND c.callstartdate = s.callstartdate
AND e.elementname like 'CallTypeCheck' and e.exitstate in ( 'Notes', 'DOS' )
GROUP BY
c.callstartdate,
c.dnis,
e.elementname || ', ' || e.exitstate;
>[Error] Script lines: 1-27 -------------------------
A syntax error has occurred.
[Executed: 7/30/08 3:32:31 PM CDT ] [Execution: 0/ms]