1. (20 pts) Write the create table statements for the following ERD. Make sure to have...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. (20 pts) Write the create table statements for the following ERD. Make sure to have the primary key and foreign key constraints. ssn Employees name lot Worksin since did Departments dname a. List all the unique product vendors. b. List all the customer names in the state of California. 2. (10 pts) Insert 5 records into each table of question 1. 3. Download the sample database from http://www.mysqltutorial.org/mysql-sample-database.aspx. An ER diagram is available on this page as well. Load the data into MySQL and write queries for the following questions. 4. (20 pts) Simple Queries: Write the SQL queries on one table budget c. Calculate the average credit limit for all the customer in California. d. For each customer, list the total number of orders in 2005. e. List all the product name who quantityInStock is less than 200. 1. (20 pts) Write the create table statements for the following ERD. Make sure to have the primary key and foreign key constraints. ssn Employees name lot Worksin since did Departments dname a. List all the unique product vendors. b. List all the customer names in the state of California. 2. (10 pts) Insert 5 records into each table of question 1. 3. Download the sample database from http://www.mysqltutorial.org/mysql-sample-database.aspx. An ER diagram is available on this page as well. Load the data into MySQL and write queries for the following questions. 4. (20 pts) Simple Queries: Write the SQL queries on one table budget c. Calculate the average credit limit for all the customer in California. d. For each customer, list the total number of orders in 2005. e. List all the product name who quantityInStock is less than 200.
Expert Answer:
Answer rating: 100% (QA)
1 Create Table Statements sql CREATE TABLE Employees ssn INT PRIMARY KEY name VARCHAR255 NOT NULL CR... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these databases questions
-
A bond issued 10 years ago had a face value of $2,000; a coupon rate of 5%; and a yield of 6% when it was sold last month in the secondary bond market. At what price did the bond sell in the...
-
Project 1 provides experience with creating ERDs and writing CREATE TABLE statements for the Expense Reporting database at XCorp, a fast-growing web consulting company. You will design an ER Diagram...
-
a) Find the set of solutions of each of the linear congruence: i. 8x = 12 (mod 28). ii. 7x = 1 (mod 9). b) Hashing Function is used to assign a memory location for the records in the computer (For...
-
Sunita inherits $45,000 from a distant relative. She decides to invest her inheritance in a diversified, dividend-paying mutual fund. At the time of her initial investment, she purchases 1,500 shares...
-
A non-conducting thin disc of radius R charged uniformly over one side with surface density rotates about its axis with an angular velocity w. Find: (a) The magnetic induction at the centre of the...
-
If you invest $5,650 in an account paying 8.65% compounded continuously, how much money will be in the account at the end of 10 years?
-
A random experiment can result in one of the outcomes \(\{a, b, c, d\}\) with probabilities \(0.1,0.3,0.5\), and 0.1 , respectively. Let \(A\) denote the event \(\{a, b\}, B\) the event \(\{b, c,...
-
According to the value Line Investment Survey, the growth rate in dividends for Duke Energy for the previous 10 years has been 1.5 percent. If investors feel this growth rate will continue, what is...
-
Given the polynomial: f(x)=-3x - 4x + 2, find the range of polynomial.
-
Bestseller Book's binding department has beginning inventory of 5,000 units and $20,000, consisting of $10,000 of direct materials and $10,000 of conversion costs. During the period, the department...
-
A soil sample has a bulk unit weight of 19.8 kN/m3 at a water content of 10%. Determine the void ratio, percentage air in the voids (air voids), and the degree of saturation of this sample.
-
Identify common communication preferences based on motivational values.
-
Describe strategies for managing digital message overload.
-
Review reports for effectiveness and fairness.
-
Choose two communication events (conversations, email exchanges, and so on) that you were involved inone in which you had credibility from the perspective of others and one in which you did not. If...
-
Explain the principles of team communication in high-performing teams.
-
F6-22. Determine the components of reaction at C. C 250 N A B O -1.5 m- 1.5 m- D -1.5 m- 1.5 m- E 2m T 2m F6-22
-
Consider the setup in Problem 16. Show that the relative speed of the ball and the point of contact on the stick is the same before and immediately after the collision. (This result is analogous to...
-
On July 1, 2012, Ted, age 73 and single, sells his personal residence of the last 30 years for $365,000. Ted's basis in his residence is $35,000. The expenses associated with the sale of his home...
-
Carol Harris, Ph.D, CPA, is a single taxpayer and she lives at 674 Yankee Street, Durham, NC 27409. Her Social Security number is 793-52-4335. Carol is an Associate Professor of Accounting at a local...
-
During 2012, Palo Fiero purchases the following property for use in his manufacturing business: Palo uses the accelerated depreciation method under MACRS, if available, and does not make the election...
-
A project under consideration has a 10-year projected life. The initial investment for the project is estimated to have a mean of \(\$ 10,000\) and a standard deviation of \(\$ 1,000\). The annual...
-
True or False: In determining the optimum replacement interval, it is necessary to assume negligible salvage values.
-
Uncertainty can impact many elements of an engineering economic analysis. Given the list of factors below, rank them from most to least uncertain, and briefly justify why you ranked them in that...
Study smarter with the SolutionInn App