sample XML file :
<?xml version="1.0"?>
<Book>
<title>Everyday Life</title>
<author>random name</author>
<book type="Guide">
<price>30.00</price>
<author
affiliation="XYZ"></author>
<publisher>abc
Publishers</publisher>
</book>
<title>Best Pasta</title>
<author>random name</author>
<book type="COOKING">
<price>40.00</price>
<author
affiliation="XYZ"></author>
<publisher>abc
Publishers</publisher>
</book>
<title>Haunted House</title>
<author>random name</author>
<book type="Horror">
<price>60.00</price>
<author
affiliation="SRT"></author>
<publisher>pqr
Publishers</publisher>
</book>
<title>Fun with Science</title>
<author>random name</author>
<book type="Science">
<price>20.00</price>
<author
affiliation="VBH"></author>
<publisher>v
publishers</publisher>
</book>
</Book>
Equivalent JSON File: book.json
[
{
"title": "Everyday Life",
"author": "random name",
"type": "Guide",
"price": 30.00,
"author_affiliation": "XYZ",
"publisher": "abc Publisher"
},
{
"title": "Best Pasta",
"author": "random name",
"type": "Cooking",
"price": 40.00,
"author_affiliation": "XYZ",
"publisher": "abc Publisher"
},
{
"title": "Haunted House",
"author": "random name",
"type": "Horror",
"price": 60.00,
"author_affiliation": "SRT",
"publisher": "pqr Publisher"
},
{
"title": "Fun with Science",
"author": "random name",
"type": "Science",
"price": 20.00,
"author_affiliation": "VBH",
"publisher": "v Publisher"
}
]
need help with question 5. 3- Consider the following relation for published books: BOOK(Book_ title, Author_name,...
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.
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,...
Language: SQL - Normalization and Functional Dependencies Part 4 Normalization and Functional Dependencies Consider the following relation R(A, B, C, D)and functional dependencies F that hold over this relation. F=D → C, A B,A-C Question 4.1 (3 Points) Determine all candidate keys of R Question 4.2 (4 Points) Compute the attribute cover of X-(C, B) according to F Question 43 (5 Points) Compute the canonical cover of F.Show each step of the generation according to the algorithm shown in class....
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...
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...
ChangeRequest(CRID, CRType, CRTitle, CROriginDate, CRPriority, CRNeedEvent, CRStatus) NeedByEvent(Event) CRPrevState(CRID, CRState, StartDate, EndDate) CRAssigned(CRID, EmpID, StartDate, EndDate) Employees(EmpID, FirstName, LastName, JobTitle) ChangeRequest(CRID, CRType, CRTitle, CROriginDate, CRPriority, CRNeedEvent, CRStatus) The CRID is the primary key, it is unique, and it is an positive integer The CRType may be one of two values: "Deficiency" or "Enhancement" CRTitle is a variable length string that may be up to 2048 characters CROriginDate is a date CRPriority is an integer that may assume a value of...