Question: 1 . Create database named LIBRARY ( as shown at schema on the next page ) . Give names to all the constraints ( except

1. 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 -5 characters, primary key, - Surname - up to 15 characters, - Name as above, - Address up to 150 characters, - Name, Surname, Birthday_date not null, - Gender -1 char: M or F letter, - Phone_No up to 15 characters. Employees table - emp_id - primery key with identity set (seed =1, incerement=1),- Surname, Name and Birthday_date are not null, - birthday date must be earlier than date of employment (Emp_Date), Publishers table - pub_id is a primary key with identity set (seed=1, incerement=1),- Name, City, - not null, up to 50 characters, - Phone_No - up to 15 charakters, Books table - BookID - primary key, 5 characters, - Pub_ID - 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 40 characters, not null, BOOK_LOANS table - LoanID - integer with identity set (seed =1, increment =1), primary key, - CardNo, BookID and emp_id 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 0(zero),

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!