List the price of the item called back scratcher

Assignment Help Database Management System
Reference no: EM13335041

The database used for this question is a very simple one with the following schema: (Primary keys are bold, foreign keys are underlined)

CUSTOMER (CustID, FirstName, LastName, City, Phone, Email)
INVOICE (InvoiceNumber, CustID, Date)
INVOICE_ITEM(InvoiceNumber, ItemNumber, Quantity)
ITEM (ItemNumber, ItemName, UnitPrice)

When a customer makes a purchase, an invoice is created. The invoice may be for many items. For example, in a single purchase, a customer might buy 10 Back Scratchers, 4 Hair Removers and a Dog Lead.

Provide relational algebra (NOT SQL) queries for the following:

a. List the first and last names of Customers who come from the City named Perth.
b. List the first and last names of customers who had transactions on 1st August 2012.
c. List the price of the item called "Back Scratcher"
d. List the first and last names of any customer who has purchased more than 10 "Back Scratchers" in a single transaction.
e. List the names and quantities of items purchased on 1st August 2012 by the customer Peter Griffin.
f. List the dates on which Peter Griffin made purchases.
g. List the first and last names of customers who have bought "Back Scratcher" or "Hair Remover"
h. List the first and last names of customers who have bought "Back Scratcher" but have not bought "Hair Remover"
i. List the first and last names of customers who have bought "Back Scratcher" and "Hair Remover"
j. List the first and last names of any customers who have bought all of the items. (This does not need to be as part of a single purchase).

Reference no: EM13335041

Questions Cloud

What is the centripetal acceleration of the child : A 55.0-kg child takes a ride on a Ferris wheel that rotates four times each minute and has a diameter of21.0 m. What is the centripetal acceleration of the child
Explain the law of diminishing marginal utility : Explain the law of diminishing marginal utility.
What is the mass of the copper block : A copper block is removed from a 301?C oven and dropped into 1.20kg of water at 20.1?C. What is the mass of the copper block
Explain the nitrogen-nitrogen bond lengths in n2h4 : The nitrogen-nitrogen bond lengths in N2H4, N2F2, and N2 are 1.45, 1.25, and 1.10 A, respectively. Using the Lewis Structures, how can this trend be explained? No formal charges needed?
List the price of the item called back scratcher : List the first and last names of any customers who have bought all of the items. (This does not need to be as part of a single purchase).
Hierarchical planning types of time frames in planning role : Hierachical Planning Types of time frames in planning Role players Steps in production planning Planning techniques Resources
What is the most a firm should pay the first security guard : If each security guard is paid $200 a week, and the cost of the stolen radio is $25, how many guards are needed to hire?
Will electronic distrubition dislays traditional distrubiton : Will electronic distrubition dislays traditional distrubiton channels for movies?
Prepare contribution format income statements for april : Prepare contribution format income statements for April. (Round the "Total percent" answers to one decimal place. Input all amounts as positive values except losses which should be indicated by minus sign. Omit the "$" and "%" signs in your respon..

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd