Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 scripts that cannot be pasted into MySQL and run without edits.
1. Provide a count of unsold properties by branch (use BranchCity). Sort the results by
count in descending order.
2. List the average days on the market (SaleDate - ListingDate) by branch (use BranchCity).
Sort the list by average days in ascending order.
3. List the branch ID, agent ID, sales goal, and total sales for active real estate agents who
did not meet their sales goal in 2022. Sort the list by branch ID and Employee ID.
4. Provide the full name of property 2000s owner, along with the full name of their agent.
5. List all active employees (include employee ID, first name, and last name) at branch 14
and their skills if they are paralegals.
6. List the names of the property features that Jennifer Kelly is interested in. Sort the list
by feature name is ascending order.
7. Provide the average sale price for a 3 bedroom, 2.5 bathroom property in cities that
begin with B. Sort the results by city in ascending order.
8. List the average percent difference between the listing and sale prices by branch (use
BranchCity). Sort the list by percent difference in descending order. (Hint: percent
difference =(SalePrice - ListingPrice)/ListingPrice)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions

Question

10. What is meant by a feed rate?

Answered: 1 week ago

Question

2 What supply is and what affects it.

Answered: 1 week ago