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)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 brapton?

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
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)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 brapton?
customer
CustNum CustName City
3 Kent
4 Moore
SFelipe
7 Khoury
8 Brant
9 Wells
13 Ironwood
14Joë
15 Test22
16 Joe G.
BURLINGTON
BRAMPTON
MISSISSAUGA
MISSISSAUGA
OAKVILLE
BURLINGTON
OAKVILLE
TORONTO
TORONTO
BRAMPTON
product
ProductNum Descr
CreditLimit
1 Swiss army knife
2 Electric heater
3 Snowboard
4 Hockey stick
5 Snow shovel
6 Stove
7 Toaster
8Jumper cables
9test
2000
1000
4500
1000
1500
0
100
4000
22
1000
ProductType MSRP
Sports
Hardware
Sports
Sports
Hardware
Appliance
Appliance
Hardware
test
orders
OrderNum OrderDate Filled CustNum
105/09/1997 1
2 05/09/1997
1
3 05/09/1997
0
401/10/1997
0
5 08/10/1997
1
619/10/1997
1
7 15/10/1997
1
8 17/10/1997
1
9 04/11/1997
1
10 06/11/1997
1
11 01/12/1997
0
12 04/12/1997
0
13 08/12/1997
0
14 15/12/1997 0
15 17/12/1997
0
51.69
99.99
344.99
31.63
29.99
989.99
34.99
25.99
30
Onhand
22
10
37
172
53
17
12
38
9
6
10
3
8
3
1
6
4
5
orderline
OrderNum ProductNum Quantity SalesPrice
1
4
5
6
8
9
10
11
12
13
55
15
15
7
61
4
1
2
8073Ninin 3
2
5
5
4
in 8069NN
5 -
7
2
7
2
16
1
1
1
1
1
2
1
3
4
1
1
2
1
1
34.99
980
25
44.95
99.99
25.99
34.99
299.99
99.99
29.99
27.5
295
42
27.5
25.99
975
34.99
105
34.99
Transcribed Image Text:customer CustNum CustName City 3 Kent 4 Moore SFelipe 7 Khoury 8 Brant 9 Wells 13 Ironwood 14Joë 15 Test22 16 Joe G. BURLINGTON BRAMPTON MISSISSAUGA MISSISSAUGA OAKVILLE BURLINGTON OAKVILLE TORONTO TORONTO BRAMPTON product ProductNum Descr CreditLimit 1 Swiss army knife 2 Electric heater 3 Snowboard 4 Hockey stick 5 Snow shovel 6 Stove 7 Toaster 8Jumper cables 9test 2000 1000 4500 1000 1500 0 100 4000 22 1000 ProductType MSRP Sports Hardware Sports Sports Hardware Appliance Appliance Hardware test orders OrderNum OrderDate Filled CustNum 105/09/1997 1 2 05/09/1997 1 3 05/09/1997 0 401/10/1997 0 5 08/10/1997 1 619/10/1997 1 7 15/10/1997 1 8 17/10/1997 1 9 04/11/1997 1 10 06/11/1997 1 11 01/12/1997 0 12 04/12/1997 0 13 08/12/1997 0 14 15/12/1997 0 15 17/12/1997 0 51.69 99.99 344.99 31.63 29.99 989.99 34.99 25.99 30 Onhand 22 10 37 172 53 17 12 38 9 6 10 3 8 3 1 6 4 5 orderline OrderNum ProductNum Quantity SalesPrice 1 4 5 6 8 9 10 11 12 13 55 15 15 7 61 4 1 2 8073Ninin 3 2 5 5 4 in 8069NN 5 - 7 2 7 2 16 1 1 1 1 1 2 1 3 4 1 1 2 1 1 34.99 980 25 44.95 99.99 25.99 34.99 299.99 99.99 29.99 27.5 295 42 27.5 25.99 975 34.99 105 34.99
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Transaction Processing
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education