Live Coding Exercise
Live Coding Exercise
Part 1
Using the following samples of tables, write a SQL query to answer the questions
below:
Questions
1. In which FOCUS CITY can you find the most expensive listing?
2. Calculate the average price of listings in each city, showing only cities where
the average price is greater than $1000.
Group by c.city_name
Questions
1. Get the latest price of each listing
2. You want to analyse price development. Calculate the average listing price per
month. Note: You need to take the price of a given listing in a given month.