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

  Implement a new learning management system

Its a lead a project that will implement a new learning management system for your university. You have two key tasks: Task 1: Investigate learning management software packages that are available through application service providers.

  Same name to attributes which are in different tables

What about giving same name to attributes which are in different tables but are not same? For instance, "Description" in both a Course table and a Classroom table.

  Identify super key of r based on functional dependencies

Identify the Functional Dependencies in R. Be sure to maximize the number of attributes on the right hand side (RHS) and minimize the number of attributes on the left hand side (LHS) of each FD. You should exclude any trivial FDs in your answer.

  Write candidate keys and referential integrity constraints

Transform the tables into one or more tables in BCNF. Write the primary keys, candidate keys, and referential integrity constraints.

  Design updateable database for storing customer and sales

Design an updateable database for storing customer and sales data. Explain how to deal with the problems of missing data.

  Criteria selecting a life-cycle model for the project

What criteria would you use in selecting a life-cycle model for the project?

  Write names-e-mail addresses for all customers from table

Show all the data in each of the four tables. Do not show foreign key columns. Write names and e-mail addresses for all customers who have had a stove repair that cost more than $50.

  Explain data for each candidate of eight constituencies

supplies % of votes each candidate is likely to receive, based on popularity rating. Actual number of votes received is that percentage of General votes. You should enter data for each candidate in each of the eight constituencies.

  How could those redundancies lead to anomalies

What problem would you encounter if you wanted to produce a listing by city? How would you solve this problem by altering the file structure?

  Write sql statements to calculate average salary

Write SQL statements that do the following: Calculate the average salary for all employees. Calculate the maximum salaries for exempt and non-exempt employees.

  Build the prototype as a distributed system

You should document a UML design for the proposed system. This should include a description of: architecture, requirements and functionality, detailed system design.

  Explain the benefits and current trends of data warehousing

Create a diagram using Visio, Microsoft Paint, or other graphical creation utility of your choosing to illustrate the conceptual data feeds into and out of the data warehouse. Note: The graphically depicted solution is not included in the required..

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