Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLZ help with the following: Complete the following query Using this table which you can change to solve the problem. Create table book (title INT,

PLZ help with the following:

Complete the following query

Using this table which you can change to solve the problem.

Create table book (title INT, year INT, num INT, subject Varchar);

Create table client (CID int,fname varchar(20)lname varchar(10),type varchar(6));

Create table author (year INT, ID INT, fname varchar,lname varchar(10);

The question is bellow

1.Solve the following: Choose appropriate data types for each attribute and include primary key and foreign key constraints, Check and Not Null constraints and make the the primary key are : num, Id, cid.

The problem is below

The faculty and students (we refer to them in our system as clients) can electronically check out any book at any time. A book must have at least one author but can have more authors. An author must have written at least one book or more to be included in the system. A book may have never been checked out, but can be checked out many times by the same client or different clients over time. A client may have never checked out a book or they may have checked out many books over time. To simplify determining which client currently has a given book checked out, a M:N relationship between BOOK and CLIENT should be maintained. The information recorded for each book is book number, book title, book subject, and year of publication. For each author, the library records the author ID, first and last name and year of birth. Because all faculty and students in the department are given accounts at the online library, the client ID, first and last name and client type need to be stored. Finally, checkout out date, checkout due date and checkout in date for each book must be tracked.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions