Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

use results from view in a where statement

$
0
0

I have a sql server 2008 stored procedure where I want to use the results of a view in a where statement. I want to check to see if the results from the view is not null.

The sql looks like the following currently:

select top 5 from cust_table
where view value is not null.

Would you show me the t-sql that I would need to use to see if the results from the view is null?



Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>