For a given book, number_pages can not be changed, but can have multiple authors and publishers.
since, authors and publishers are independent from each other, but both are dependent on title.
{title} ->> {author}
{title} ->> {publisher}
so, column author and publisher are multivalued dependent on column title.
example: Book (title, author, number_pages, publisher)
| title | author | number_pages | publisher |
| B001 | A001 | 100 | P001 |
| B001 | A002 | 100 | P002 |
| B002 | A001 | 150 | P001 |
| B003 | A002 | 200 | P003 |
| B003 | A003 | 200 | P004 |
author( name, age)
| name | age |
| A001 | 28 |
| A002 | 30 |
| A003 | 28 |
publisher( name, coty)
| name | city |
| P001 | C001 |
| P002 | C001 |
| P003 | C002 |
| P004 | C003 |
In book table, we can see that B001 has multiple authors A001 and A002 and number of pages of book B001 is 100 (because both authors are writing same book), but publishers of B001 is P001 and P002. Since, there are more than one independent maltivalued attributes which depends on attribute title. so, {title}->>{author} and {title}->>{publisher} are multivalued dependencies.
Given the following relation, what are potential Multivalued Dependencies (MVDs)? title, author, number_pages, publisher) author-(name, age) publisher (name, city) Given the following relation,...
Question: Consider the following relation for published books: BOOK (Book title, Author_name, Book_type, List_price, Author_affil, Publisher) Author _affil refers to the affiliation of an author. Suppose the following dependencies exist Book_title Publisher, Book type Book-type → List-pricej Author name → Authoraffil - a. What normal form is the relation in? Explain your answer.
Consider the following relation for published books: BOOK(Book title, Author_name, Book type, List price, Author affil, Publisher) Author_affil refers to the affiliation of author. Suppose the following dependencies exist: Book title Publisher, Book type Book type List price Author_name > Author affil (a) What normal form is the Book relation in? Why? (b) Decompose Book into 2NF relations. . (c) Decompose Book into 3NF relations.
Consider the following relation tables (fields with underline is primary keys): Author(Name, Country) Book(ISBN, Title, Publisher, Subject) Writes(Name, ISBN) Write the relational algebra for the following query: a. (2 points) Give the titles of all books with "Art" subject Solution: b. (2 points) Give the name of all authors who publish with "Harding" Solution: (2 points) Give the name of all authors who have written books with "Science" subject Solution: c. d. (3 points) Give the titles of all books...
Author(name, address, URL)
Book(ISBN, title, year, price,
publisher_Name)
WrittenBy(name, address, ISBN)
Publisher(name, address, phone, URL)
Warehouse(code, phone, address)
Stocks(ISBN, WH_code, number)
Shopping-Basket(basketID, email)
basketContains(ISBN, basketID, number)
Customer(email, name, address, phone)
Referring to the relational model in slide 15 in"ER-mapping" (about author, publisher, shopping-basket, provide the algebraic pressing for the following queries Q1: Report the book title, and year for the books that have been written by exactly 2 authors, one of them is Mark Smith" Q2: For each customer,...
1. Consider a Relation that holds attributes of courses and sections at a university: R = CourseNo, SecNo, OfferingDept, CreditHours, CourseLevel, InstructorSSN, Semester, Year, Days Hours, RoomNo, NoOfStudents Assume that the following functional dependencies hold: • CourseNo → Offering Dept, CreditHours, CourseLevel • CourseNo, SecNo, Semester, Year → Days Hours, RoomNo, NoOfStudents, InstructorSSN • RoomNo, Days Hours, Semester, Year → InstructorSSN, CourseNo, SecNo Normalize Relation R upto 3NF. 2. Consider the relation for published books: Book = Book title, AuthorName,...
need help with question 5.
3- Consider the following relation for published books: BOOK(Book_ title, Author_name, Book_type, List_price, Author_affil, Publisher) Suppose the following dependencies exist: Book_title à Publisher, Book_type Book_type à List_price Author_name à Author_affil a. What normal form is the relation in? Explain your answer? b. Apply normalization until you cannot decompose the relation further. State the reasons behind the decomposition. 4- Consider the above question, write a program in python to create xml file for the decomposed BOOK...
Q: What inference do you think the author might draw from a
decision by the publisher to pay an advance? What strategy—work
hard or not—do you think the author would then adopt? What are the
implications for the publisher? Is there a sense in which the
publisher, in deciding to pay an advance, is sending a signal to
the author? Is sending this signal a good idea?
Question 2. This game is about a negotiation between an author and a...
Consider a relation R(A,B,C,D,E) with the following functional dependencies: 8. AB C BCD CDE DEA (a) Specify all candidate keys for R. (b) Which of the given functional dependencies are Boyce-Codd Normal Form (BCNF) violations'? (c) Give a decomposition of R into BCNF based on the given functional dependencies. (d) Give a different decomposition of R into BCNF based on the given functional dependencies. (e) Give a decomposition of R into 3NF based on the given functional dependencies.
Consider a...
Consider the following definition of equivalent sets of functional dependencies on a relation: “Two sets of functional dependencies F and F’ on a relation R are equivalent if all FD’s in F’ follow from the ones in F, and all the FD’s in F follow from the ones in F’.” Given a relation R(A, B, C) with the following sets of functional dependencies: F1 = {A B, B C}, F2 = {A B, A C}, and...
Normalisation Consider the following relation schema about project meetings: PMG(projID, title, type, manager, jobID, start-date, end-date, contractor, contractNo) Some notes on the semantics of attributes are as follows: • Each project has a unique project ID (projID) and also has a title, type and manager. Each manager has a specialty project type. • A project often contracts jobs to contractors with start-date and end-date. Contracts are identified by contract numbers (contractNo), but contract details are out of the scope of...