ou are required to: Provide a normalized relational logical schema for the same database (NB It is not mandatory to report the restructured ER diagram) Define referential integrity constraints for 2 relationships of your choice among those defined in the conceptual schema solution: AUTHOR( author_id , name, surname) BOOK ( ISBN , title , num_page s , price ) CUSTOMER( customer_id , phone_number*, type, name*, surname*, vat_number*) CLERK( clerk_id , name) BUY( customer_id, clerk_id, ISBN ) WRITTEN_BY( author_id, ISBN ) 1) WRITTEN_BY (author_id) REFERENCES AUTHOR(author_id) WRITTEN_BY (ISBN) REFERENCES BOOK(ISBN) 2) BUY(customer_id) REFERENCES CUSTOMER(customer_id) BUY (clerk_id) REFERENCES CLERK(clerk_id) BUY (ISBN) REFERENCES BOOK (ISBN) i gave the solution. but i do not have any idea where it came from and how im supposed to formulate a similar solution so please help me understand how was this was reached and how i should solve these type of questions in great detail. will give thumbs up to good answer
You are required to:
- Provide a normalized relational logical schema for the same
database (NB It is not mandatory to report the restructured ER diagram) - Define referential integrity constraints for 2 relationships of your choice among those defined in the conceptual schema
solution:AUTHOR( author_id , name, surname)
BOOK ( ISBN , title , num_page s , price )
CUSTOMER( customer_id , phone_number*, type, name*, surname*, vat_number*)
CLERK( clerk_id , name)
BUY( customer_id, clerk_id, ISBN )
WRITTEN_BY( author_id, ISBN )
1) WRITTEN_BY (author_id) REFERENCES AUTHOR(author_id)
WRITTEN_BY (ISBN) REFERENCES BOOK(ISBN)
2) BUY(customer_id) REFERENCES CUSTOMER(customer_id)
BUY (clerk_id) REFERENCES CLERK(clerk_id)
BUY (ISBN) REFERENCES BOOK (ISBN)
i gave the solution. but i do not have any idea where it came from and how im supposed to formulate a similar solution so please help me understand how was this was reached and how i should solve these type of questions in great detail. will give thumbs up to good answer
![phone number (0,1) 0
NON PRIVATE
vat_number
customer_id
CUSTOMER
(t.e)
clerk_id
(0,N)
PRIVATE
CLERK
name
(0.N)
surname
BUY
name
(0,N)
price num_pages
BOOK
(1,N)
(1,N)
AUTHOR
author_id
WRITTEN BY
ISBN
title
name
surname](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F42eb23f5-591e-411f-9b72-0865a0b1ec70%2Fba365b52-b8e2-4b88-a5a7-88e3dd82f09e%2Fodwki4m_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 4 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![A Guide to SQL](https://www.bartleby.com/isbn_cover_images/9781111527273/9781111527273_smallCoverImage.gif)
![A Guide to SQL](https://www.bartleby.com/isbn_cover_images/9781111527273/9781111527273_smallCoverImage.gif)
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)