SundancerKid
Programmer
How would I call a Function within an Oracle View?
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 or replace view sundancer as
select last_name, to_char(start_date,'Month') Hire_month
from s_emp;
View created.
select * from sundancer;
LAST_NAME HIRE_MONTH
------------------------- ----------
Velasquez March
Ngao March
Nagayama June
Quick-To-See April
Ropeburn March
Urguhart January
Select a, b, c
From ABCClub
Where (Select Function_AthruZ ( 'p_ccn', 'p_type') as MyResults from dual)
That's because a WHERE clause evaluates a conditional phrase which results must be TRUE for a row to become part of the result set.Sundancer said:It is not working in Where Clause
...WHERE 103
Select a, b, c
From ABCClub
Where Function_AthruZ ( 'p_ccn', 'p_type') = 'xyz';
Select a, b, c
From ABCClub
Where Function_AthruZ ( 'p_ccn', 'p_type') = '1 = 1'
Yes, that would seem to work. What happens when you use that construct?Sundancer said:is that right?