tab0529
26th April 2006, 14:11
Hello,
I am getting on error 215 on a select statement with a group by and having clause. My sql statement is:
select tsclm907.cnum:cnum.h, max(tsclm907.endt)
from tsclm907
where tsclm907.fini = tcyesno.yes
group by tsclm907.cnum
having max(tsclm907.endt) < :ardt
selectdo
...
endselect
A partial table definition is cnum, pono,..., stdt, endt. Similar sql against Oracle which works correctly is:
select t$cnum, max(t$endt) from baan.ttsclm907100
where t$fini = 1
having max(t$endt) < to_date('31-DEC-2003','DD-MON-YYYY')
group by t$cnum;
The error text from log.oracle8 is:
******* S T A R T of Error message *******
Log message called from /view/port.7.1d.11/vobs/tt/servers/ORACLE_2/ora_data.c: #270 keyword: Illegal condition
Pid 60282 Uid 389 Euid 389 Gid 125 Egid 125 Pset tab0529@devserv:58292
user_type S language 2 user_name tab0529 tty ote locale ISO88591/NULL
Errno 0 bdb_errno 110 (End of file reached)
dbs_errno = 215, Error 215 occurred:
Internal exception error :
Illegal condition, args [1] : [071545]
Flushed at /view/port.7.1d.11/vobs/tt/servers/ORACLE_2/ora_data.c : #270.
******* E N D of Error message *******
Does anyone have any ideas? Does anyone have a similar example of a group by with a having clause?
Thanks in advance for your help!
I am getting on error 215 on a select statement with a group by and having clause. My sql statement is:
select tsclm907.cnum:cnum.h, max(tsclm907.endt)
from tsclm907
where tsclm907.fini = tcyesno.yes
group by tsclm907.cnum
having max(tsclm907.endt) < :ardt
selectdo
...
endselect
A partial table definition is cnum, pono,..., stdt, endt. Similar sql against Oracle which works correctly is:
select t$cnum, max(t$endt) from baan.ttsclm907100
where t$fini = 1
having max(t$endt) < to_date('31-DEC-2003','DD-MON-YYYY')
group by t$cnum;
The error text from log.oracle8 is:
******* S T A R T of Error message *******
Log message called from /view/port.7.1d.11/vobs/tt/servers/ORACLE_2/ora_data.c: #270 keyword: Illegal condition
Pid 60282 Uid 389 Euid 389 Gid 125 Egid 125 Pset tab0529@devserv:58292
user_type S language 2 user_name tab0529 tty ote locale ISO88591/NULL
Errno 0 bdb_errno 110 (End of file reached)
dbs_errno = 215, Error 215 occurred:
Internal exception error :
Illegal condition, args [1] : [071545]
Flushed at /view/port.7.1d.11/vobs/tt/servers/ORACLE_2/ora_data.c : #270.
******* E N D of Error message *******
Does anyone have any ideas? Does anyone have a similar example of a group by with a having clause?
Thanks in advance for your help!