Construct the SQL statementsthat are comparable to the Relational Algebra queries (Question 5)above for the following questions:- (i)Where is the location of the shop whose sales number endswith "A000"?)(ii)What was the title andcategoryof the bookthat the customer named Emekabought?( (iii)Who purchased the book in the Coding category,or the quantity is greater than two? (iv)What isthe total sales and location of the shop with the registration number "REG KL 100" in the month ofApril 2021? (v)Display the identification number, name, age together with the total salesof the customers who purchasedthe Computer Fundamentals title book.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Construct the SQL statementsthat are comparable to the Relational Algebra queries (Question 5)above for the following questions:-

(i)Where is the location of the shop whose sales number endswith "A000"?)(ii)What was the title andcategoryof the bookthat the customer named Emekabought?(

(iii)Who purchased the book in the Coding category,or the quantity is greater than two?

(iv)What isthe total sales and location of the shop with the registration number "REG KL 100" in the month ofApril 2021?

(v)Display the identification number, name, age together with the total salesof the customers who purchasedthe Computer Fundamentals title book.

Consider the same relational schemas as mentioned in Question 5 above:
Book (ISBN, Category, BTitle, Quantity)
Sales (SalesNo, Month_Year, TotalSales, ISBN)
Shop (RegNo, Location, SalesNo)
Customer (CID, CName, TelNo, Age)
Transcribed Image Text:Consider the same relational schemas as mentioned in Question 5 above: Book (ISBN, Category, BTitle, Quantity) Sales (SalesNo, Month_Year, TotalSales, ISBN) Shop (RegNo, Location, SalesNo) Customer (CID, CName, TelNo, Age)
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY