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
Step by step
Solved in 4 steps