Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Your job is to create the 1 0 queries listed below and answer questions about each query to verify whether you created it correctly. Notice
Your job is to create the queries listed below and answer questions about each query to verify whether you created it correctly. Notice that each quix question found after the entire list of queries refers to a specific query from the list. Be sure to refer to the appropriate query when answering each quix question. Although your grade comes from answering the quiz questions correctly, you must also submit the SQL you created to answer each question within the quiz questions below. Generate a list of salespeople and sort it in descending order by hire date Show the first name, last name, hire date, and salary for each salesperson 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 in descending order by last name. Generate a list of customers with annual incomes greater than $ who purchased cars from salesperson "Katie." Show the first name, last name, and annual income of each of these customers Which customers purchased vehicles from salesperson "Dudley" despite having a "Poor, Very Poor or "Extremely Poor credit rating? Show the first name, last name, and credit description for these customers. Salesperson Colin recently had an encounter with a customer who he would like to contact again. Unfortunately, Colin can't remember if the customer's last name was "Hansenor "Hanson. Construct a query to help Colin find the correct customer to follow up with show the customer's first name, last name, and phone number Construct a query to count how many encounters resulted in the customer declining to make a purchase. Use the COUNT function. Hints a customer can have many encounters Customers with low annual income or poor credit ratings often have trouble qualifying for credit. A new, local credit agency may be better able to serve this market segment than the current options can. The manager would like to talk to a few salespeople who have had the most encounters with these customers. Create a list that shows each salesperson first and last name and the number of encounters each has had with customers that have an annual income of $ or less or have a credit description that is "Very Poor" or "Extremely Poor." Order the results alphabetically by the salesperson's last name. Your query should have three columns FirstName, LastName, encounter count. Generate a query to find the average income of customers who purchased a car on their interaction Construct a query to show customers with an annual income greater than $ who have a credit rating of "Falc. "Poor, "Very Poot." or "Extremely Poor Show each customer's first name, last name, credit description, and annual income. Management is considering closing on Sundays and would like to have a feeling for the kinds of customers that come to the dealership on Sunday. Create a total query that shows the count of encounters on the Sundays of July grouped by the credit description held by the customer of the encounter, The Sundays in July of are the Sththth and th Your answer should have two columns Credit Description and encounter count and should be sorted alphabetically by credit description A Conditional Formatting Format as Tablo v Paste Font Alignment Number Cells Cell Styles Editing ES x vfx C D E F G OWN Salesid SFirstName SlastName SHireDate Salary Harry Potter $ Hermione Granger $ Ron Weasley $ Dudley Dursley $ Katie Bell $ Ginny Weasley $ Neville Longbottoi $ Colin Creevey Enter the SQL code that you wrote to answer Query Format Font Size BIU Query Which employee has been employed with GGA for the longest period of time? Harry Potter Hermione Granger Ron Weasley Dudley Dursley Katie Bell Ginny Weasley Colin Creevey Neville Longbottom None of the Above Query What is the salary of the second most recently hired employee? Answer should be inputted to the nearest whole numberO decimal places. Do not include any dollar signs or commas!Query On what date was the most recently hired employee hired on at GGA? Use the MMDDYYYY format Enter the SQL code that you wrote to answer Query Format Font Stre A AQ X BI VSXQuery How many records are in the result? Answer should be inputted to the nearest whole numberO decimal places.Query True or fulse: Richard Martin is one of the customers in the results. True False Query True or false: Leticia McCloud is one of the customers in the results. True False Enter the SQL code that you wrote to answer Query Format Font Size A AQS BI U x x Query How many records were displayed in your results? Select the range in which your answer falls. to to to to to to to to None of the Above Query True or false: Carmen Page and Seth Romney were customers that bought from Kate and fit the question query criteria True False Query Which customers had a credit description of poor? Diego Castro Sarah Scarborough Martin March Isabella Munoz Robin Webb Helen Fisher None of the above Enter the SQL code that you wrote to answer Query Fom Font A Bas BIUS X X TQuery How many customers had credit descriptions of "Extremely poor?" Answer should be inputted to the nearest whole numberO decimal places.Query True or false: Andrew Buchanon is one of the customers in the results. True False Query Which of the following customers has a first name that starts with the letter M and appears in your results for query Select all that apply Mark Mitchell Martin Enter the SQL code that you wrote to answer Query Formal Font A AQ BI U X X Query True or false: Colin worked with more than one customer who had the last name "Hanson" or "Hansen" e more than one Hanson or more th True False Query Enter the phone number of the customer with the last name of "Hanson." Enter the phone number with no hyphens, spaces, periods, or parentheses; your answer should look something like Enter the SQL code that you wrote to answer Query Format Font Size A AQ BIUS X X T I Query How many rows of data did your query return? B Query Input the number of encounters that did not result in a purchase. Note: don't confuse the number of encounters with the mamber of records retum Answer should be input to the nearest whole number O decimal places. Do not use any dollar signs ar commast Enter the SQL code that you vote to answer Query Format Font Sie A Q US X X Query Which two salespersons had the fewest encounters based on this query? Dudley Dursley and Hermione Granger Ginny Weasley and Colin Creevey Katie Bell and Colin Creevey Colin Creevey and Hermione Granger Query What is the name of the third salesperson in this list resulting from Query Dudley Dursley Neville Longbottom Ginny Weasley Colin Creevey Enter the SQL code that you wote to answer Query Format Font Sie BIUS X X Query Input the average annual income displayed in your query Your answer should be entered with two decimal places. Do not use any dollar signs or commast Enter the SQL code that you wrote to answer Query Format Font Siye A A to BIUS X X Tery How many customers have credit description of a we should be inputted to the nearest whole numberdecimal placesQuery True or false: The query result indicates that only two customers have credit description of very poor and only three customers have credit descriptions of poor. True Enter the SQL code that you wrote to nie wery Font AQ BIUS Query Based on the data, what type of customers are most likely to show up on a Sunday in July? Those who donk get their credit pulled or checked at the dealership Those with good credit ratings Those with very good credit ratings Those with fair credit ratings Those with very poor credit ratings Query True or false: There are people that came in on Sundays in July without getting their credit checked or pulled at the dealership, True False Submit Assessment Query Input the number of encounters that did not result in a purchase. Note: don't confuse the number of encounters with the number of records returnedAnswer should be input to the nearest whole number decimal places. Do not use any dollar signs or commasQuery S True or false: Colin orked with more than one customer who had the last name "Hanson" or "Hansene, more than one Hansen or more than ane Hansen True False Query How many records were displayed in your results? Select the range in which your answer falls. to to to to E to to to m to None of the above Query True or false: Carmen Page and Seth Romney were customers that bought from Kate and fit the question query criteria True False
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started