How to validate Employee Age which should be greater than or equal to 18 years with check constraint?

 Posted by vishalneeraj-24503 on 9/1/2014 | Category: Sql Server Interview questions | Views: 1248 | Points: 40

We can write below script to validate Age as:
Alter Table Employee_Master

Add Constraint CK_Age
Check ([Age] >= 18)

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response