{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

354.3-08.Assignment3

354.3-08.Assignment3 - CMPT-354 D1 Fall 2008 Database...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CMPT-354 D1 Fall 2008 Database Systems I Instructor: Martin Ester TA: Gustavo Frigo Assignment 3 Total marks: 100 (10 % of the assignments) Due date: October 3, 2008 Assignment 3.1 Consider the following database schema: Product (model , maker, type) PC (model , speed, ram, hd, price) Laptop (model , speed, ram, hd, screen, price) If the type of a Product is “PC”, then there is a PC tuple with the corresponding attributes, if the type of a Product is “Laptop”, then there is a Laptop tuple with the corresponding attributes. a) Using two INSERT statements, store in the database the fact that PC model 1100 is made by manufacturer “C”, has speed 3.2, RAM 1024, hard disk 180, and price $2499. (10 marks) b) For each Laptop made by manufacturer “B”, add one inch to the screen size and subtract $100 from the price. (15 marks) c) Insert the facts that for every PC there is a Laptop with the same manufacturer, speed, RAM, and hard disk, a 17 inch screen, a model number 1100 greater, and a price $500 more. (20 marks) Assignment 3.2 Consider the database schema from assignment 3.1. Sketch the implementation of the following
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern