hi,
i am trying to execute the following query but getting "ora-00907 missing right parenthesis" in the subquery and it highlights the "order" when error occurs. But i am not sure what the problem is here as i have correct number of parenthesises?
update patients set p_number =
(select p_code from customers where p_number is null and p_code like 'AL%' order by p_date desc)
where rownum <10
I have tried running this in a select statement which works perfectly:
select * from
(select p_code from customers where p_number is null and p_code like 'AL%' order by p_date desc)
where rownum <10
can someone help me out Please?
Thanks
Alica
