1) A new company recently started a business where they buy highly discounted items in bulk...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1) A new company recently started a business where they buy highly discounted items in bulk from different companies who are going out of business or need to get rid of additional items to save warehouse space. This new company has retail stores in big cities across the country where they sell the items to individuals. They also do business as wholesalers where they sell items in bulk to local retailers in small cities. Therefore, they have two types of customers: individuals and small retailers. The company has four departments: purchase, warehouse, sales (retail and wholesale) and accounting. They employ five different types of employees: managers, accounting staffs, warehouse staffs, retail associates, and purchase agents. Each staff, agent and associate works under a manager of the respective department. Purchase agents hunt for discount items, and they get a commission based on the items they are successfully able to buy. Create a relational model to manage the database of this company. You have the freedom to make necessary assumptions about relations and attributes to create a realistic model. 2) Make sure you define primary and foreign key constraints properly. Give descriptive names to relations and attributes. 3) Design the database schema in LucidChart following the conventions used in the textbook. For each relation schema, provide justifications for your choice of the primary and foreign keys. 4) Use SQL commands to create the schema of your database. Also use SQL commands to enter at least 5 dummy tuples in each relation. 5) Create examples of SQL query employing each of the SQL clauses: a. Union – 1 example b. Aggregate + Group by - 2 examples c. Nested query -2 examples For each example, include the query in natural language and corresponding SQL statements. Add additional tuples if required to run your queries successfully. For each query, provide the screenshot of the output of the query on MYSQL server. 1) A new company recently started a business where they buy highly discounted items in bulk from different companies who are going out of business or need to get rid of additional items to save warehouse space. This new company has retail stores in big cities across the country where they sell the items to individuals. They also do business as wholesalers where they sell items in bulk to local retailers in small cities. Therefore, they have two types of customers: individuals and small retailers. The company has four departments: purchase, warehouse, sales (retail and wholesale) and accounting. They employ five different types of employees: managers, accounting staffs, warehouse staffs, retail associates, and purchase agents. Each staff, agent and associate works under a manager of the respective department. Purchase agents hunt for discount items, and they get a commission based on the items they are successfully able to buy. Create a relational model to manage the database of this company. You have the freedom to make necessary assumptions about relations and attributes to create a realistic model. 2) Make sure you define primary and foreign key constraints properly. Give descriptive names to relations and attributes. 3) Design the database schema in LucidChart following the conventions used in the textbook. For each relation schema, provide justifications for your choice of the primary and foreign keys. 4) Use SQL commands to create the schema of your database. Also use SQL commands to enter at least 5 dummy tuples in each relation. 5) Create examples of SQL query employing each of the SQL clauses: a. Union – 1 example b. Aggregate + Group by - 2 examples c. Nested query -2 examples For each example, include the query in natural language and corresponding SQL statements. Add additional tuples if required to run your queries successfully. For each query, provide the screenshot of the output of the query on MYSQL server.
Expert Answer:
Related Book For
Business Statistics For Contemporary Decision Making
ISBN: 978-1118749647
8th edition
Authors: Black Ken
Posted Date:
Students also viewed these accounting questions
-
Do wholesalers and retailers need to worry about new product planning just as a producer needs to have an organized new-product development process? Explain your answer.
-
You need to hire some new employees to staff your start-up venture. You know that potential employees are distributed throughout the population as follows, but you cant distinguish among them: What...
-
You are a CPA who works for a local accounting firm. While having lunch at Willie's Communication Skills Diner last Thursday, you overheard Beth Murray describe how Bart (her spouse) was able to get...
-
Yamini and Fatima, two students of Class IX of a school, together contributed Rs. 100 towards the Prime Ministers Relief Fund to help the earthquake victims. Write a linear equation which satisfies...
-
The following are from a companys statements of financial position: During 2016, the company issued additional shares for $7,000 and declared dividends of $4,000. Required: Calculate what the...
-
Write the structure of the principal organic product formed in the reaction of 1-propanol with each of the following reagents: (a) Sulfuric acid (catalytic amount), heat at 140C (b) Sulfuric acid...
-
Use the Poisson distribution to approximate the binomial probability \(b(1 ; 100,0.02)\).
-
In this chapter, you learned about the importance of testing. Design a generic test plan that describes the testing for an imaginary system.
-
On September 1 , 2 0 2 7 , Betty DeRose, Inc. received $ 5 4 , 0 0 0 cash from a customer as payment for services that will be performed over the next 3 0 months. On May 3 1 , 2 0 2 8 , Betty DeRose,...
-
Ohio Swiss Milk Products manufactures and distributes Ice cream in Ohio, Kentucky and West Virginia. The company wants to expand operations by locating another plant in northern Ohio. The size of the...
-
Distance Y necessary for stopping a vehicle is a function of speed of the vehicle X. Suppose the following set of data were observed for 12 vehicles traveling at different speeds, Vehicle Speed, No....
-
Mimosa Inc. has total assets of $6,321,600 at the beginning of the year and $4,896,500 at the end of the year. If its net income during the year is $499,500, what is Mimosa's return on assets for the...
-
How do endocrine disorders, such as diabetes mellitus, hyperthyroidism, and hypopituitarism, arise from dysregulation of hormone synthesis, secretion, or receptor signaling, and what are the...
-
What are the implications of social learning theory on the development of organizational culture and norms? Explain
-
BRIEFLY DESCRIBE an essay for THESE THREE THINGS (TOPICS) YOU WILL ADDRESS. Define the goals of business writing, summarize the 3-x-3 writing process, and explain how it guides a writer. Analyze the...
-
Not every case subject to review by a court is a case involving constitutional law. Why? How can a court determine when a case involves constitutional law? How can a legal researcher make that...
-
6. For the wavefunction, (x) = A (e-x + xe-x/2), find the probability the state will be in the interval -1 < x < 1.
-
An auto-parts manufacturer is considering establishing an engineering computing center. This center will be equipped with three engineering workstations each of which would cost $25,000 and have a...
-
Suppose that in the bookkeeping operation of a large corporation the probability of a recording error on any one billing is .005. Suppose the probability of a recording error from one billing to the...
-
Use a chi-square goodness-of-fit test to determine whether the following observed frequencies are distributed the same as the expected frequencies. Let α =.01. Category 214 235 279 281...
-
Use the data given to test the following hypotheses. Assume the data are normally distributed in thepopulation. Ho: -7.48 Ha: < 7.48 x = 6.91, n 24, 1.21, = .01
-
An old-fashioned tire swing exerts a force on the branch and a torque about the point where the branch meets the trunk. If you hang the swing closer to the trunk, this will --the force and-- the...
-
Which of these objects is in static equilibrium? A. B. C. D.
-
A beam with a pivot on its le ft end is suspended from a rope. Tn which direction is the force of the pivot on the beam? A. B. C. D. E.
Study smarter with the SolutionInn App