Suppose that we have a table of house prices and a table of zip codes:
• hprices(hid (PK),address,bedrooms,price,zipcode)
• zipcodes(zipcode (PK),state)
Write a SQL query that finds the average, maximum, and minimum price for all the houses in each state, as well as the total number of houses for sale in each state. ?