Top-Rated Free Essay
Preview

team work

Good Essays
680 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
team work
CS304 Database System Concepts
Assignment 3
Due: April 16, 2013
(Please submit hard copies to class or to Zheng on due date.)
Name: Matric No:
Q1. (10 points) Consider the E-R diagram in Figure 1, which models an online bookstore. a. List the entity sets and their primary keys b. Suppose the bookstore adds music cassettes and compact disks to its collection. The same music item may be present in cassette or compact disk format, with differing prices. Extend the E-R diagram to model this addition, ignoring the effect on shopping baskets. c. Now extend the E-R diagram, using generalization, to model the case where a shopping basket may contain any combination of books, music cassettes, or compact disks.

Figure 1
Note: Please only include necessary parts of the original diagram.

Q2. (10 points)Although you always wanted to be an artist, you ended up being an expert on databases because you love to cook data and you somehow confused database with data baste. Your old love is still there, however, so you set up a database company, ArtBase, that builds a product for art galleries. The core of this product is a database with a schema that captures all the information that galleries need to maintain. Galleries keep information about artists, their names (which are unique), birthplaces, age, and style of art. For each piece of artwork, the artist, the year it was made, its unique title, its type of art (e.g., painting, lithograph, sculpture, photograph), and its price must be stored. Pieces of artwork are also classified into groups of various kinds, for example, portraits, still lives, works by Picasso, or works of the 19th century; a given piece may belong to more than one group. Each group is identified by a name (like those just given) that describes the group. Finally, galleries keep information about customers. For each customer, galleries keep that person’s unique name, address, total amount of dollars spent in the gallery (very important!), and the artists and groups of art that the customer tends to like.

Draw the ER diagram for the database and give the schema for this database

Q3. (20 point)Consider the following set F of functional dependencies for relation schema R
R=(A, B, C, D, E)
F={, , , } a) Compute the closure of F; b) Compute the canonical cover ; c) List candidate keys for R;

If R is decomposed to and , show that d) this decomposition is a lossless decomposition e) this decomposition is NOT a dependency-preserving decomposition

Q4. (20 points) 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) Are the schemas Sale and Item in Boyce-Codd Normal Form? If not, decompose them into BCNF.

Q5. (10 points)Given a relational schema r (A, B,C, D), does A →→ BC logically imply
A→→ B and A→→C? If yes prove it, else give a counter example.

Q6. (10 points) Exercise 7.12 on page 307 of Text book.

Q7. (10 points) Explain why 4NF is a normal form more desirable than BCNF.

Q8. (10 points) 3NF decomposition can be done in polynomial time. Verifying whether a given decomposition is in 3NF is hard(NP complete). Why is decomposition polynomial while verification exponential?

You May Also Find These Documents Helpful

  • Good Essays

    c) Create a bar graph summarizing average dollars spent (including book and non-book items) by total number of purchases…

    • 2842 Words
    • 22 Pages
    Good Essays
  • Satisfactory Essays

    1st Individual Homework

    • 609 Words
    • 10 Pages

    4. Is there a significant correlation between customers’ total spending on books and their total spending on non-book products?…

    • 609 Words
    • 10 Pages
    Satisfactory Essays
  • Powerful Essays

    Fast Fit Case

    • 2269 Words
    • 10 Pages

    b) What are three important uses of this information at the store by the store manager and by management at the headquarters– a total of six uses? (use a table) (It is important that you give different responses/uses for store manager and the HQ)…

    • 2269 Words
    • 10 Pages
    Powerful Essays
  • Best Essays

    Termpaper

    • 4159 Words
    • 22 Pages

    1.Identify the potential sales and department store transactions that can be stored within the database.…

    • 4159 Words
    • 22 Pages
    Best Essays
  • Satisfactory Essays

    assign1

    • 309 Words
    • 1 Page

    iVideo, a local video renting shop, is considering creating a database to keep track of…

    • 309 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Working with Teams

    • 273 Words
    • 2 Pages

    For this option, you must prepare information to share with your new team, describing how they were chosen, how the team will function, and your plan for solving the problem.…

    • 273 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    team work

    • 2002 Words
    • 9 Pages

    can be made, it is important that the factors influencing product and service pricing are…

    • 2002 Words
    • 9 Pages
    Powerful Essays
  • Powerful Essays

    2. Then convert E-R diagram to SQL DDL, or whatever database model you are using…

    • 1653 Words
    • 7 Pages
    Powerful Essays
  • Satisfactory Essays

    Dbm380 Course Syllabus

    • 2296 Words
    • 10 Pages

    Course Description This course covers database concepts. Topics include data analysis, the principal data models with emphasis on the relational model, entity-relationship diagrams, database design, normalization, and database administration. Policies Faculty and students will be held responsible for understanding and adhering to all policies contained within the following two documents: • • University policies: You must be logged into the student website to view this document. Instructor policies: This document is posted in the Course Materials forum.…

    • 2296 Words
    • 10 Pages
    Satisfactory Essays
  • Good Essays

    Team Work

    • 805 Words
    • 4 Pages

    The group originally chose the project on respect towards older people aimed at 15-19 year olds however, following a group discussion decided to change the project to recognising stress in carers. This was because the group felt that the carers topic was currently highlighted in the media and there was a large volume of literature available from a variety of sources. The group also felt that the respect towards elders project was quite a broad topic which could be interpreted in many different ways which may have been challenging to convey on a poster. The group preferred a poster over a leaflet as they felt it could reach a wider audience when placed anywhere rather than someone having to physically collect a leaflet. The group also thought a poster would be more eye catching, easier to read and concise for stressed busy carers who wouldn’t want to read large volumes of text. 152 words…

    • 805 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Team Working

    • 1303 Words
    • 6 Pages

    The Cover Supervisors and teaching staff are all informed of how to hand over work and regularly use email to communicate issues and information.…

    • 1303 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    Effective Teamwork

    • 696 Words
    • 2 Pages

    Teamwork is characterized by having a sense of purpose to achieve a clear, specific goal that all members believe is important to attain. A team can be assigned to carry out a specific project, such as seeking ways to improve profitability in a small business. A team could also be assembled to find the right candidate for a job opening. All teams should consist of members who are capable of contributing to the achievement of the goal based on their level of knowledge or expertise. If a team is assigned the task of development of an expense budget, but one or more of the members has little or no budgeting experience, the whole team will suffer as a result. A successful team contains a spirit of cooperation. All members need to work together to achieve the specific goal. This can be difficult, especially if some members possess strong personalities or are highly opinionated. Successful teams tend to have strong leaders who can keep everybody on the same page while keeping the petty bickering to a minimum. Teams should also have a set of rules that determines its operating procedures. These rules help to keep the team on track and eliminate ambiguities. For example, a team might have a rule that all team members must agree on a decision before it can be implemented. This would require that the team deliberate, much in the way of a trial jury, until a consensus is reached.…

    • 696 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Effective Teamwork

    • 548 Words
    • 2 Pages

    Each team member will have a role on the team. There is the leader, the follower,…

    • 548 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Database Design and Development | International Institute Of Computer Professionals | Francisco Lezama | Student ID: 00132002 | March 2013 NCC Education - Level 5 Diploma in Business Information Technology School of Accounting and Management, Trinidad, W.I. Table of Contents Task 1 1 Entity Relationship Diagram 1 Normalization 4 Data Dictionary 6 Task 2 10 2.1 Implementation and Data 10 2.2 Inserting data into tables for Members and Countries 16 2.3 Inserting Data for the Organizations; Assign Members to Organizations 18 2.4 Data on Qualification and Topic 20 2.5 Query – Select all the Organizations and Members 23 2.6 Query – Selects all Member’s Qualifications and Topics 24 2.7 Query – Selects all Interest Groups 26 2.8 Query – Show All Countries and The Members That Reside In Those Countries 26 Task 3 27 Derived Data 27 Task 4 29 Evaluation 29 Bibliography 30 Task 1 Entity Relationship Diagram List of Entities 1.…

    • 2564 Words
    • 11 Pages
    Powerful Essays
  • Powerful Essays

    Criminal Record Management

    • 2646 Words
    • 11 Pages

    Police provides safety to citizens. It always remains steady for arresting any criminal who is a threat for the safety of society. After registering the FIR from any citizen, police starts its work and on that basis it arrests the criminals if proofs are found against them. Once the criminals are arrested, police starts investigation from them. After getting all the proofs against the criminal, it is the duty of the police to present all the proofs honestly to the court so that the right…

    • 2646 Words
    • 11 Pages
    Powerful Essays