Can you please write the MySQL Query sentences for the following items below?
For example: SELECT * FROM employees;
Generate a list of customers whose last name begins with the letter “M.” Show the first and last names of these customers. Sort the list of customers descending by last name.
C. Generate a list of customers with annual incomes greater than $80,000 that purchased a car. HINT: Purchase will have a value of “Yes”.
D. Generate a list of customers that purchased cars from salesperson “Jesse”. Show the first name, last name, and annual income for each of these customers.
E. Which customers purchased vehicles despite having a “Poor,” “Very Poor,” or “Extremely Poor” credit rating? Show the first name, last name, and credit description for these customers.
F. Salesperson “Jungpil” recently worked with a customer who he would like to contact again. Unfortunately, he cannot quite remember if the customer’s last name was “Hansen” or “Hanson.” Construct a query to help “Jungpil” find the correct customer to follow up with. Show the customer’s first name, last name, and phone number.
G. Generate a query to find the average income of customers who purchased a car on their interaction.
H. Construct a totals query to examine the relationship between salespeople and the annual income of the customers they target in their interactions. Show the salespeople’s first name and the average annual income of their customers in your result.
A.
Select SalesPersonID,FirstName,LastName,HireDate,Salary from Salesperson order by HireDate desc;
B.
Select FirstName,LastName from Customers where LastName Lile 'M%' order by LastName desc;
C.
Select * from Customers where AnnualIncome > 80000 and Purchase = 'Yes';
D.
Select Customer.FirstName,Customer.LastName,AnnualIncome from Customer inner join SalesPerson on Customer.SalesPersonId = SalesPerson.SalespersonId where SalesPerson.FirstName = 'Jesse';
E.
Select FirstName,LastName,CreditDescription from Customer where CreditDescription IN('Poor','Very Poor','Extremely Poor');
F.
Select Customer.FirstName,Customer.LastName,PhoneNumber from Customer inner join SalesPerson on Customer.SalesPersonId = SalesPerson.SalespersonId where Customer.LastName IN('Hansen','Hanson') and SalesPerson.FirstName = 'Jungpil';
G.
Select avg(AnnualIncome) from Customers where Purchase = 'Yes';
H.
Select SalesPerson.FirstName,Customer,AnnualIncome from Customer inner join SalesPerson on Customer.SalesPersonId = SalesPerson.SalespersonId ;
Do ask if any doubt. Please upvote.
Can you please write the MySQL Query sentences for the following items below? For example: SELECT...
Create SQL for the following: Construct a query to show customers with an annual income greater than $100,000 who have a credit rating of “Fair,” “Poor,” “Very Poor,” or “Extremely Poor.” Show each customer’s first name, last name, credit description, and annual income.
Hello, I need help answering all 8 of these questions for my BIS
422 class. I need the appropriate MySQL script to use for these
questions
Provide the SQL for the following data requests. Your SQL should
be written as a single script that can be pasted into MySQL and run
without edits. Make sure you use the proper notation for your
comments (see the practice solution for an example of the format).
There will be a 5% deduction for...
PLEASE NOTE BEFORE YOU ANSWER. THIS IS NOT MYSQL, IT IS MONGODB. IF YOU DO NOT KNOW MANGODB, PLEASE DO NOT ANSWER THIS QUESTION. LEAVE IT FOR SOMEONE WHO KNOWS IT. PART 1 Create a collection that will hold the data in avgprice kwh state.json. This .json file contains the annual data from 1990-2012 on the average energy price per kilowatt hour (KwH) by state and provider type. Implement the following queries: 1. Print each document that has Oklahoma as...
can someone solve these quick
please and thank you!
sql chapter 4
Query #1: List the company name, contact name, contact title and
the phone number for customers who HAVE NOT put in an order. Use an
outer join.
Query #2: Create a listing displaying the employee first name,
last name and the full name (First name space Last Name) of the
person they report to (Supervisor). This is a self-join. If an
employee does not report to anyone then...
Please help me on the SQL
queries, thank you so much.
Write a query to display the
title and publisher as well as the publisher contact for each book
using JOIN...USING clause.
Write a query to show the
first and last names of customers who have ordered cooking books.
Use the WHERE clause to join the tables.
Write a query to show the
title, cost and ISBN of each book in the books table. If the book
has been ordered,...
Use program control statements in the following exercises: Question 1 . Write pseudocode for the following: • Input a time in seconds. • Convert this time to hours, minutes, and seconds and print the result as shown in the following example: 2 300 seconds converts to 0 hours, 38 minutes, 20 seconds. Question 2. The voting for a company chairperson is recorded by entering the numbers 1 to 5 at the keyboard, depending on which of the five candidates secured...
Answer the following questions using mysql. Please show screenshots to make sure the queries work. 1. Use a sub-query and the IN operator to find the number and name of each customer that placed an order on October 23, 2007. 2. Repeat step 2, but this time use the EXISTS operator in your answer. 3. Using a sub-query, find the number and name of each customer that did not place an order on October 23, 2007. 4. Using a sub-query,...
Hello! Could you please write a 6 paragraph summary (5-6
sentences each paragraph) of the below? In the overview, if you
could please describe the information in detail. Please have
completed in 6 days if possible. Thank you!
In 50 Words Or LesS .6TOC combines lean Six Sigma (LSS) and the theory of constraints (TOC) for bottom-line benefits . The method's metrics pyramids and communi- cations allow organiza- tions to retain gains and monitor benefits. · 6TOC goes beyond fac-...
second attempt. need asap please 2-4 sentences summarizing the article 4 interesting quotes from the article and 4 points explaining each quote In the first few years of the new millennium, at the height of the boom in the offshore call-center business, Tata Consultancy Services, the Indian technology-services giant, made the counterintuitive decision to divest its call-center operations. Why? Because although outsourced call centers were a fast-growing piece of its current business, TCS’s leadership had come to believe that they...
Please read the article and answer about questions. You and the Law Business and law are inseparable. For B-Money, the two predictably merged when he was negotiat- ing a deal for his tracks. At other times, the merger is unpredictable, like when your business faces an unexpected auto accident, product recall, or government regulation change. In either type of situation, when business owners know the law, they can better protect themselves and sometimes even avoid the problems completely. This chapter...