Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following relational schema: Sale(clerk, store, city, date, item, size, color) // a clerk sold an item on a particular day Item(item, size, color,

image text in transcribed
Consider the following relational schema: Sale(clerk, store, city, date, item, size, color) // a clerk sold an item on a particular day Item(item, size, color, price) // prices and available sizes and colors for items Make the following assumptions, and only these assumptions, about the real world being modeled: - Each clerk works in one store. - Each store is in one city. - A given item always has the same price, regardless of size or color. - Each item is available in one or more sizes and one or more colors, and each item is available in all combinations of sizes and colors for that item. Sale does not contain duplicates: If a clerk sells more than one of a given item in a given size and color on a given day, still only one tuple appears in relation Sale to record that fact. (a) Specify a set of completely nontrivial functional dependencies for relations Sale and Item that encodes the assumptions described above and no additional assumptions. (b) Based on your functional dependencies in part (a), specify all minimal keys for relations Sale and Item. (c) Is the schema in Boyce-Codd Normal Fom (BCNF) according to your answers to (a) and (b)? If not, give a decomposition into BCNF

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

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

13. You always should try to make a good first impression.

Answered: 1 week ago