Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!