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

Populate default state within new SQL table

$
0
0

Hey Team,

98% of my customers are from California (cust_state). I want to modify the table so that when I add a Customer record, the state defaults to 'CA', unless I specify a different state

Is there a SQL statement to accomplish this?

Viewing all articles
Browse latest Browse all 7129

Trending Articles



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