Question: 1 . Create database named LIBRARY ( as shown at schema on the next page ) . Give names to all the constraints ( except
Create database named LIBRARY as shown at schema on the next page Give names to all the constraints except NULL constraints The properties of the tables are defined as follows: MEMEBERS table CardNo characters, primary key, Surname up to characters, Name as above, Address up to characters, Name, Surname, Birthdaydate not null, Gender char: M or F letter, PhoneNo up to characters. Employees table empid primery key with identity set seed incerement Surname, Name and Birthdaydate are not null, birthday date must be earlier than date of employment EmpDate Publishers table pubid is a primary key with identity set seed incerement Name, City, not null, up to characters, PhoneNo up to charakters, Books table BookID primary key, characters, PubID foreign key related to Publishers, Type charaters, must contain one of the following values: novel, historical, for kids, poems, crime story, science fiction, science Price is a currency field money not null, Title up to characters, not null, BOOKLOANS table LoanID integer with identity set seed increment primary key, CardNo, BookID and empid are foreign keys related to Members, Books and Employees, DateOut must be earlier than DueDate, Penalty can't contain negative values, default is set to zero
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
