Question

Views PROPERTY [pid, stno, stname, sttype, suburb, state, postcode, carspaces] Write the following queries in SQL in your PROQuery #4 Please

"Which street in the suburb Camperdown has the highest average rent"

in LISTING, the "type" column determines if it is "rent" or "sell"

Thankyou

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Select stname FROM

(SELECT p.stname,AVG(l.price) AS AvgPrice From Property p INNER JOIN Listing l ON p.pid=l.pid WHERE P.suburb='Camperdown' and l.type='rent' GROUP BY p.stname) As SubQueryTable WHERE AvgPrice= (Select Max(AvgPrice) From

(Select p.stname,Avg(l.price) As AvgPrice From property p inner join listing l on p.pid=l.pid where p.suburb='Camperdown' and l.type='rent' group by p.stname) As SubQueryTable2);

To get Max avg price street we have used subquery table. And filter data with help of where clause. Please comment if you see any errors while executing query.

Add a comment
Know the answer?
Add Answer to:
Query #4 Please "Which street in the suburb Camperdown has the highest average rent" in LISTING,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Write the following queries in SQL in your PROPERTY database: 1. List the properties that have been sold by real estate agencies that are located in the same suburb as the property 2. Who is the most...

    Write the following queries in SQL in your PROPERTY database: 1. List the properties that have been sold by real estate agencies that are located in the same suburb as the property 2. Who is the most successful real estate agent in 2018. (Hint: who has sold and rented properties of the greatest value) 3. List the agencies that have property listings in every suburb 4. Which real estate agency (or agencies) has most number of houses available for rent...

  • Please answer all parts. Parts 1-50 Please just tell appropriate choice. Ex. 1 = A, 2....

    Please answer all parts. Parts 1-50 Please just tell appropriate choice. Ex. 1 = A, 2. C etc. etc. if you do this incompletely I will report you. Do this only if you understand. Thank you . 1 of 50 - In which of these places is asbestos not likely to be found? Roofing Adhesives in pressed wood Textured paint Vinyl floor tiles. 2 of 50- Which property would most probably have the longest lease term? Industrial property. Apartment. Office....

  • Question 2 Ms. Gold has been investing in real estate for almost half a century. On...

    Question 2 Ms. Gold has been investing in real estate for almost half a century. On January 1, 2018, she owned four rental properties and the relevant facts on these properties are as follows: 112 Bay Street This is a Class 3 building that has a capital cost of $850,000. Its UCC at the beginning of the year was $627,000. During the year, it generated rent of $81,000 and incurred property taxes of $10,500, interest charges of $13,000, and other...

  • Please summarize this into a summary of the article Hotels Hurry to Raise Cash as Federal...

    Please summarize this into a summary of the article Hotels Hurry to Raise Cash as Federal Aid Could End Some owners of smaller and private hotels must pay more for financing and take less for property sales Some hotel owners are faced with property sales at discounted prices and expensive financing now that federal aid is poised to expire. Larger hotel owners such as the publicly listed real-estate investment trusts have drawn down their credit lines and sold bonds, which...

  • The average price of a house in Dublin has increased once again to €388,000

                                                 The average price of a house in Dublin has increased once again to €388,000THE AVERAGE HOUSE price in Ireland has risen by almost 4% in the past year, according to the latest Daft.ie report.The average price nationwide, based on the 8,200 properties listed in the last 12 months, is now €263,000 – an increase of 3.7% on the previous year.Dublin was once again the most expensive county to buy a house in, with the average price of a house...

  • EX16 XL _CH01_GRADER ML2 HW - Real Estate Sales Report 1.3 Project Description: You own a...

    EX16 XL _CH01_GRADER ML2 HW - Real Estate Sales Report 1.3 Project Description: You own a small real estate company in Indianapolis. You track the real estate properties you list for dlients. You want to analyze sales for selected properties. Yesterday, you prepared a workbook with a worksheet for recent sales data and another worksheet listing several properties you listed. You want to calculate the number of days that the houses were on the market and their sales percentage of...

  • real estate case study Case Problem Allen Benedict is thinking of buying an apartment complex that...

    real estate case study Case Problem Allen Benedict is thinking of buying an apartment complex that is offered for sale by the firm of Getz and Fowler. The price, $2.25 million, equals the property's market value. The following statement of income and expense is presented for Benedict's The St. George Apartments Prior Year's Operating Results, Presented by Getz and Fowler, Brokers 30 units, al Washer and dryer rentals Gross annual income Less operating expenses apartments, $975 per month 351,000 361,000...

  • I used easybib for my paper and got a response this is not in apa format....

    I used easybib for my paper and got a response this is not in apa format. Can you tell me why? Introduction The purpose of this project is to conduct a community assessment and apply the nursing process to an identified priority community health problem in Lynn, Massachusetts. Lynn is located in Essex County. It borders Lynnfield, Nahant, Peabody, Revere, Salem, Swampscott, and Saugus, MA. Lynn, MA has a population of 92,074 people with a median age of 33 (McGillicuddy,...

  • Metlock Sporting Goods Inc. has been experiencing growth in the demand for its products over the ...

    Metlock Sporting Goods Inc. has been experiencing growth in the demand for its products over the last several years. The last two Olympic Games greatly increased the popularity of basketball around the world. As a result, a European sports retailing consortium entered into an agreement with Metlock’s Roundball Division to purchase an increasing number of basketballs and other accessories over the next five years. To be able to meet the quantity commitments of this agreement, Metlock had to increase its...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT