Passing parameters into a view
632290Apr 4 2008 — edited Apr 4 2008Hi I am new to this so could someone please help me. I have created a view
CREATE VIEW tutorial AS
SELECT ot.ordno, ot.orddate, ol.prodno, p.prodprice, ol.qty
FROM ordertbl ot, ordline ol, product p
WHERE ot.ordno = ol.ordno AND
ol.prodno = p.prodno AND
TO_CHAR(orddate,'Day') LIKE 'Sunday%'
is it possible for me to create this view to accept a parameter so that i cood run the same view to return results for different days i.e. saturday, monday etc
thanks