Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Develop and execute an SQL query to satisfy the following information requirements. 1. Write a query that lists the name, industry and location of corporate

Develop and execute an SQL query to satisfy the following information requirements.

1. Write a query that lists the name, industry and location of corporate clients.

2. Write a query that lists the industry and the total number of apartments leased by companies in that industry, order by total number of apartments leased in descending order. Limit to top 2 rows.

3. Write a query that lists the building id and apartment no of all apartments that have 3 or more bedrooms.

4. Write a query that lists the names of companies that have referred at least one other client and those that are in the top 2 industries that rent the maximum number of apartments.

5. Write a query to list buildingid, aptno and ccname in building B2. List all the apartments in B2 even if they are not leased to a client.

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_2

Step: 3

blur-text-image_3

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

Database Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions

Question

3. Explain the forces that influence how people handle conflict

Answered: 1 week ago