cursor & decode & supquery .. error? [message #460735] |
Mon, 14 June 2010 05:47 |
ahmed_samir
Messages: 61 Registered: January 2009 Location: EGYPT
|
Member |
|
|
what's wronge in this code :
cursor cur_requests is
SELECT request_id, request_date,
decode (wh_request_info.request_kind,'ÅÏÇÑÉ',[b](SELECT department_name FROM hr_departments WHERE department_id = wh_request_info.request_who_id and rownum = 1)[/b] ,site_name),
emp_first_name || emp_all_name AS namess
FROM hr_emp_info, wh_request_info, hr_sites_info
WHERE (hr_emp_info.emp_id = wh_request_info.emp_id)
AND (wh_request_info.request_who_id = hr_sites_info.site_id)
AND request_date = '02/01/2010';
when am try to compile this code error raise at start and end of the bold code ( sub query) why this error .. ?
thanks
|
|
|
|
|
|
|
|
Re: cursor & decode & supquery .. error? [message #460755 is a reply to message #460748] |
Mon, 14 June 2010 06:31 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
This is Forms 6i, right? If so, Id say that Forms PL/SQL engine doesn't support such a use of a subquery. Which also means that you'll have to rewrite the query.
P.S. Ah, phone call lasted too long (which prevented me to post a reply); CM was way faster, but - it appears that our opinions match.
[Updated on: Mon, 14 June 2010 06:32] Report message to a moderator
|
|
|
|
|
|
|
|
|