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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started