Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following relations are part of a general store database: customer(custnum, custname, city, creditlimit) orders (ordernum, orderdate, filled, custnum) orderline (ordernum, productnum, quantity, salesprice)

  

The following relations are part of a general store database: customer(custnum, custname, city, creditlimit) orders (ordernum, orderdate, filled, custnum) orderline (ordernum, productnum, quantity, salesprice) product(productnum, descr, producttype, msrp, onhand) Here is a sample data (assume there are more records) customer orders orderline CustNum CustName City 3 Kent OrderNum ProductNum Quantity SalesPrice CreditLimit OrderNum OrderDate Filled CustNum 1 7 2 34.99 BURLINGTON 2000 105/09/1997 1 2 2 6 1 980 4 Moore BRAMPTON 1000 205/09/1997 1 9 3 4 5 Felipe MISSISSAUGA 4500 3 05/09/1997 0 16 25 6 4 1 1 44.95 7Khoury MISSISSAUGA 1000 401/10/1997 0 10 5 2 1 99.99 8Brant OAKVILLE 1500 508/10/1997 1 3 5 8 1 25.99 9 Wells BURLINGTON 0 619/10/1997 1 5 6 7 1 34.99 13 ronwood OAKVILLE 100 715/10/1997 1 5 7 3 1 299.99 14 Joe 15 Test22 16 Joe G. TORONTO TORONTO 4000 BRAMPTON 22 1000 817/10/1997 1 9 04/11/1997 8 8 2 1 99.99 1 9 9 5 2 29.99 10 06/11/1997 1 3 10 5 11 27.5 11/01/12/1997 0 7 11 3 12 04/12/1997 0 1 11 4 13 08/12/1997 0 6 11 5 4 1415/12/1997 0 15/17/12/1997 4 12 8 0 5 13 product 6 14 7 2 1 295 42 27.5 1 25.99 1 975 34.99 15 2 1 105 15 1 H 34.99 ProductNum Descr ProductType MSRP Onhand 1 Swiss army knife Sports 51.69 22 2 Electric heater Hardware 99.99 10 3 Snowboard Sports 4 Hockey stick 5 Snow shovel 6 Stove 7 Toaster 8Jumper cables Stest Sports Hardware Appliance 989.99 Appliance Hardware test 344.99 31.63 29.99 37 172 53 17 34.99 12 25.99 38 30 1 Using PROJECT, SELECT, and JOIN, write the sequence of operations to answer each of the following questions: 1a. What are the names and customer numbers of customers who are from Mississauga? 1b. What are the names of products (descry) and product types of products purchased by customers from Brampton?

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

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions

Question

The command to sort the xyz file in the background is

Answered: 1 week ago