Assignment 3 DB
Assignment 3 DB
FALL 2024
Assignment-3
CLO # Course Learning Outcome Taxonomy Level
Instructions:
1. Show the Names and positions of the staff members who are supervisors or managers and are
managing some property. Also show the details of the owners of the property. (Hint: Use Join)
2. Show the names of the owners whose properties in Glasgow were viewed by clients looking for a
flat but left no comments. (Hint: Nested Query)
3. Show the details of staff members who work in a branch not located in the same city as the location
of the property that they manage. (Hint: CoRelated Query)
4. Show the details of all clients and the address of the properties that they have viewed in Glasgow.
(Hint: Outer Join)
5. Show the number of properties and average expected monthly rent for properties managed by
staff members born after 1955. (Hint: Aggregate Function)
6. Show the number of properties managed by each staff member from every London branch. Also
show the address of the branch and the name and position of the staff member. (Hint: Group By)
7. For each city show the average expected rent for different type of properties. (Hint: Group By)
8. Show the total number of properties visited by each client and the average length of comments
(number of characters) left by them. (Hint: Outer Join & Group By)
9. Show the details of the clients whose max rent limit is less than the average rent of the property
type they are looking for. (Hint: Aggregate Function & Condition)
10. Show the details of the clients who have viewed the properites with the maximum rent. (Hint:
Aggregate Function & Condition))
====================================THE END====================================