Cant seem to figure out how to add constraints to attributes as seen below.
create table Children
(
child_id int not null,
fname varchar(24),
lname varchar(24),
phone int,
grade varchar(24),
primary key(child_id),
check(grade = 'Beginner' OR 'Novice' OR 'Skilled' OR 'Expert')
)
The main thing i want to achieve here is for the grade variable to only be made one of the possible grades 'Beginner', 'Novice', 'Skilled' or 'Expert' (Working in SQL-SERVER-2008-R2)