I have a view:
Create view VW1 as SEL col1, col2, col3 from tab1;
and I can run following SEL.
SEL a.col1, a.col2, a.col3, b.col4 from
( sel col1, col2, col3 from VW1 where col2 = 'ABC') a
left outer join
(SEL col1, Col3 as col4 from VW1 where col2 = 'ABC'
qualify row_number() over ( order by col1) = 1
) b
on a.col1 = b.col1;
I need to change above SEL to a View so that user can access with simple query like SEL * from VW2 where col2 = 'ABC'
Any suggestions?
Thanks
Asher
Forums: