Question : select * in view

is this acceptable syntax to use:

col1,col2,col3,col4 not in (select * from viewname)
where viewname has the same 4 columns.

if i do not spell out the name completely, could this give error at any time?

thanks

Answer : select * in view

This syntax is not acceptable.

it has to be done something like this...

select * from ...
where ( col1, col2, col3, col4 ) not in ( select * from viewname ) ;

this will work as long as there are 4 columns in the view with the same data type family.

Thanks,
Random Solutions  
 
programming4us programming4us