Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 2 ( 40 points) Write appropriate SQL DDL statements for declaring the LIBRARY relational database schema of Figure 4.6. Specify the keys and referential

image text in transcribed
image text in transcribed
Question 2 ( 40 points) Write appropriate SQL DDL statements for declaring the LIBRARY relational database schema of Figure 4.6. Specify the keys and referential triggered actions, BOOK \begin{tabular}{|l|l|l|} \hline Book id & Title & Publisher_name \\ \hline BOOK AUTHORS \\ \hline Book_id & Author name \\ \hline \end{tabular} PUBLISHER \begin{tabular}{|l|l|l|} \hline Name & Address & Phone \\ \hline 1 \end{tabular} BOOK COPIES \begin{tabular}{|c|c|c|} \hline Book id Branch id & No_of_copies \\ \hline \end{tabular} BOOK LOANS \begin{tabular}{|c|c|c|c|c|} \hline Book id & Branch id & Card_no & Date_out & Due_date \\ \hlineL & & & \\ \hline & & \end{tabular} LIBRARY BRANCH \begin{tabular}{|c|c|c|} \hline Branch id & Branch_name & Address \\ \hline M4 & \end{tabular} Figure 4.6 BORROWER A relational database \begin{tabular}{|l|l|l|l|} \hline Card no & Name & Address & Phone \\ \hline \end{tabular} schema tor a LIBRARY database

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

Genetic Databases

Authors: Martin J. Bishop

1st Edition

0121016250, 978-0121016258

More Books

Students also viewed these Databases questions

Question

3. Identify the methods used within each of the three approaches.

Answered: 1 week ago