Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
Exercise 4: Consider the following relational schema: Sale(clerk, store, city, date, item, size, color) I/ a clerk sold an item on a particular day Item(item, size, color, price) I/ 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 Form (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

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

Students also viewed these Databases questions

Question

How could assessment be used in an employee development program?

Answered: 1 week ago