Jump to content

[SOLVED] ORA-00936 with Oracle script


Recommended Posts

The following SQL returns ORA-00936 when run.

select 	MemNumber,
	Turnover
from
(
	select mem_number MemNumber,
	sum(trans_turnover) Turnover
from members
join transact
on mem_number = trans_code
where Trans_date between '&Start' and '&End'
and mem_barred = 0
group by 	mem_number
	order by turnover desc
)
where rownum <=200
/

Please tell me how I fix it.

Link to comment
https://forums.phpfreaks.com/topic/127687-solved-ora-00936-with-oracle-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.