want to build a database based on MySQL to maintain the daily purchase businesses in Wuhan University. Please use SQL to realize the following targets.

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
1. Lets suppose there are twenty shop stores and 50,000 students in Wuhan University, and we want to build a database based on MySQL to maintain the daily purchase businesses in Wuhan University. Please use SQL to realize the following targets a) Please build a schema including at least two entities, saying Store and Student, and a relationship Purchase, such that the main purse details and the main characters of stores (including their department region number) and students (including their names, country name, student number, etc.) can be modeled properly Query the three tables to extract the total purchase amount of a shop store with its name Ziqiang chaoshi in the department region Technology Region. Query the three tables to extract your total purchase amount in all shop stores in the year 2018. Query the three tables to extract the yearly purchase amounts of all the shop stores in the department region Technology Region, and group and sort the amounts by year. b) c) d) 2. Following question IV-1, next we consider all of the universities in China, including 1,000 universities like Wuhan University a) Please estimate the transactions per second in IV-1, and claim whether its possible to b) c) accommodate all records in a data center consisting a single MySQL server If we were to run the queries IV-1-b-IV-1-d based on a single MySQL server, please estimate how long these queries will take. If we want to speed up these queries based on Hive or Spark, how to build a FLAT schema? And, give the corresponding queries based on the flat schema. (Please give the translated queries based on either SOL or Hive QL)
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Fundamentals of Big Data Analytics
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.
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