1. Refer to the tables below and write a SQL statement to prepare a list with...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Refer to the tables below and write a SQL statement to prepare a list with salesman name, customer name and their cities for the salesmen and customer who belongs to the same city. Table: Salesman salesman_id 5001 5002 5005 5006 5007 5003 Table: Customer | name | city | commission James Hoog | New York Nail knite Paris Pit Alex London Mc Lyon Paris Paul Adam Rome Lauson Hen | San Jose customer_id | cust_name 3002 | Nick Rimando 3007 Brad Davis 3005 Graham Zusi 3008 Julian Green Fabian Johnson 3004 3009 Geoff Cameron 3003 Jozy Altidor city New York New York California London Paris Berlin Moscow 0.15 0.13 0.11 0.14 0.13 0.12 | grade salesman_id 100 200 200 300 300 100 200 5001 5001 5002 5002 5006 5003 5007 2. Refer to the tables below and write a SQL statement to make a list with order no, purchase amount, customer name and their cities for those orders which order amount between 500 and 2000 ord_no 70001 70009 70002 70004 70007 70005 70008 Table: customer 3002 3007 3005 3008 3004 3009 3003 purch_amt ord_date customer_id salesman_id 2012-10-05 3005 2012-09-10 3001 2012-10-05 3002 2012-08-17 3009 2012-09-10 3005 2012-07-27 3007 2012-09-10 3002 customer_id | cust_name Nick Rimando Brad Davis 150.5 270.65 65.26 110.5 948.5 2400.6 5760 +234567890 10 3. Given the following car theft data set: Example No. Color Type Origin 1 Red Sports Domestic Red Sports Domestic Red Sports Domestic Yellow Sports Yellow Sports Yellow SUV Yellow SUV Yellow SUV Red Red Sports SUV Graham Zusi Julian Green Fabian Johnson | Paris Geoff Cameron. | Berlin Jozy Altidor I Moscow 1 city | grade salesman_id | New York New York | California London Domestic Imported Imported Imported Domestic No Imported Imported Stolen? Yes No Yes No Yes No Yes 5002 5005 5001 5003 5002 No Yes 5001 5001 100 200 200 300 300 100 | 200 I Classify the following data: {Color: Red, Type: SUV, Origin: Domestic} using Naïve Bayes 5001 5001 5002 5002 5006 5003 5007 1. Refer to the tables below and write a SQL statement to prepare a list with salesman name, customer name and their cities for the salesmen and customer who belongs to the same city. Table: Salesman salesman_id 5001 5002 5005 5006 5007 5003 Table: Customer | name | city | commission James Hoog | New York Nail knite Paris Pit Alex London Mc Lyon Paris Paul Adam Rome Lauson Hen | San Jose customer_id | cust_name 3002 | Nick Rimando 3007 Brad Davis 3005 Graham Zusi 3008 Julian Green Fabian Johnson 3004 3009 Geoff Cameron 3003 Jozy Altidor city New York New York California London Paris Berlin Moscow 0.15 0.13 0.11 0.14 0.13 0.12 | grade salesman_id 100 200 200 300 300 100 200 5001 5001 5002 5002 5006 5003 5007 2. Refer to the tables below and write a SQL statement to make a list with order no, purchase amount, customer name and their cities for those orders which order amount between 500 and 2000 ord_no 70001 70009 70002 70004 70007 70005 70008 Table: customer 3002 3007 3005 3008 3004 3009 3003 purch_amt ord_date customer_id salesman_id 2012-10-05 3005 2012-09-10 3001 2012-10-05 3002 2012-08-17 3009 2012-09-10 3005 2012-07-27 3007 2012-09-10 3002 customer_id | cust_name Nick Rimando Brad Davis 150.5 270.65 65.26 110.5 948.5 2400.6 5760 +234567890 10 3. Given the following car theft data set: Example No. Color Type Origin 1 Red Sports Domestic Red Sports Domestic Red Sports Domestic Yellow Sports Yellow Sports Yellow SUV Yellow SUV Yellow SUV Red Red Sports SUV Graham Zusi Julian Green Fabian Johnson | Paris Geoff Cameron. | Berlin Jozy Altidor I Moscow 1 city | grade salesman_id | New York New York | California London Domestic Imported Imported Imported Domestic No Imported Imported Stolen? Yes No Yes No Yes No Yes 5002 5005 5001 5003 5002 No Yes 5001 5001 100 200 200 300 300 100 | 200 I Classify the following data: {Color: Red, Type: SUV, Origin: Domestic} using Naïve Bayes 5001 5001 5002 5002 5006 5003 5007
Expert Answer:
Answer rating: 100% (QA)
Heres the solution for the first task you have To prepare a list with salesperson name customer name and their cities for the salesmen and customer wh... View the full answer
Related Book For
Posted Date:
Students also viewed these databases questions
-
What is the standard deviation of an equally weighted portfolio of two stocks with a covariance of 0.009, if the standard deviation of the first stock is 15% and the standard deviation of the second...
-
What is er-modeling and it's types ? Uses of er-modeling
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
As Paradise Properties CEO Ajanee Kallapur began thinking about what aspects of sustainability were most important for Paradise Cove, she realized that success of the hotel was critically linked to...
-
Determine the kinetic energy of the disk of Prob. 18.8. Problem 18.8: A homogeneous disk of mass m = 6 kg rotates at the constant rate 1 = 16 rad/s with respect to arm ABC, which is welded to a shaft...
-
A gas stream contains 18.0 mole% hexane and the remainder nitrogen. The stream flows to a condenser, where its temperature is reduced and some of the hexane is liquefied. The hexane mole fraction in...
-
Meddevco (name changed) is a large multinational corporation that operates in the medical devices sector. The firm employs around 33,000 people in five divisions and has operations in 120 countries....
-
Five months before the new 2002 Lexus ES hit showroom floors, the company's U.S. engineers sent a test report to Toyota City in Japan: The luxury sedan shifted gears so roughly that it was "not...
-
Compare the differences between adiabatic, isochoric, isobaric, and isothermal processes
-
Electro-Phi Inc. (the "Company") is a utility provider that sells electricity to the public. The Company produces the electricity using various forms of power generation, including the burning of...
-
i. Show that f(x) = x' + 2x +1 is irreducible in Z3r]. ii. Using a formal root a of f(x) from part (i), describe the finite field Fr. [4 marks) [3 marks] iii. Find (a?+2)-1 in F27. Exprkss your...
-
What is the reference group of KitKat Company what is the relationship between them and what is conformity of KitKat Company or what is the relationship between them? please explain consumer behavior.
-
Fobari Plc is considering two independent projects with the following cash flows. Year Project A Project B 0 -90591 -84652 1 57405 88567 2 11665 56283 3 118012 20431 The company's cost of capital is...
-
Consider a new firm in the nanotechnology field that seeks a second round of financing. This year, it has revenues of $2 million and projects profitability of $200,000 next year on revenues of $3...
-
17. Using the following balance sheet account information: a. construct balance sheets for 2019 and 2020. b. find the net working capital for the years ending 2019 and 2020. c. calculate the change...
-
A new venture is launched with an initial investment (cash on hand) of $80,000. It generates sales of $40,000 each month. It has monthly operating costs of $36,000. The firm purchases equipment...
-
classify these atomic orbitals as dxy, dyz, dxz, dx2-y2, or dz2. Assignment Score: Question 1 of 6 > 83.3% dxy Tu Due Dates > HW17 about us dyz Resources dxz Answer Bank 1 careers privacy policy...
-
The Pletcher Transportation Company uses a responsibility reporting system to measure the performance of its three investment centers: Planes, Taxis, and Limos. Segment performance is measured using...
-
Suppose the user Juan creates a table called MYTABLE with four columns. The first column has a PRIMARY KEY constraint, the second column has a NOT NULL constraint, the third column has a CHECK...
-
To perform these assignments, refer to the tables in the JustLee Books database. 1. Determine how many books are in the Cooking category. 2. Display the number of books with a retail price of more...
-
How can you remove a user account from Oracle 11g?
-
Companies are facing a great amount of change in every facet of their operations today. To remain competitive, companies must keep abreast of current developments in several areas. You recently got...
-
For each of the situations listed, identify the primary standard from the IMA Statement of Ethical Professional Practice that is violated (competence, confidentiality, integrity, or credibility.)...
-
Complete the following statements with one of the terms listed here. You may use a term more than once, and some terms may not be used at all. a. To quickly navigate to the end of the data in a...
Study smarter with the SolutionInn App