Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 4729

Check Constraint for Quantity column

$
0
0

Hi! I'm learning SQL Sever 2012, I'm doing some experiment. What I did is I created a check constraints in Quantity column from OrderItem table that will limit the maximum quantity value to 70, but there is already an existed row with higher value than 70. Now, when I save it, I get the post-save notification which I expected to happen. I just want to know if there is any solution except raising the maximum value for quantity. Any help would be appreciated.




Viewing all articles
Browse latest Browse all 4729

Trending Articles



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