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

Is it possible to force a value in at least one of several columns?

$
0
0

Is it possible to define a constraint that says at least one of a set of columns must have a value?

I have a table of securities.  There are three types of security identifiers that I am recording: CUSIP, SEDOL, ISIN.  So I have a column for each type of identifier.  Is it possible to set a constraint to make sure that at least one of those columns has a value?

Thanks.

J


http://digitalcamel.blogspot.com/


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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