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

How would i create a constraint for date joined which has to be less than date left?

$
0
0

CONSTRAINT

[CK_Member_DateJoined_todayorpast]CHECK(len(DateJoined)<=getdate()[DateLeft]>[DateJoined])

I tried this but it will not work someone please help :))


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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