0% found this document useful (0 votes)
25 views

Assignment 3 DB

This document outlines Assignment-3 for an Introduction to Database Systems course, due on January 3, 2025, and focuses on using Relational Query Language and SQL. It includes instructions for submission, penalties for late or copied work, and details 10 specific questions related to an estate agency schema requiring RA and SQL statements. The assignment carries a total of 100 marks and emphasizes individual work and a quiz based on the assignment in class.

Uploaded by

MIAN AHMAD
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Assignment 3 DB

This document outlines Assignment-3 for an Introduction to Database Systems course, due on January 3, 2025, and focuses on using Relational Query Language and SQL. It includes instructions for submission, penalties for late or copied work, and details 10 specific questions related to an estate agency schema requiring RA and SQL statements. The assignment carries a total of 100 marks and emphasizes individual work and a quiz based on the assignment in class.

Uploaded by

MIAN AHMAD
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Introduction to Database Systems

FALL 2024
Assignment-3
CLO # Course Learning Outcome Taxonomy Level

CLO3 The students will be able to use constructs of Relational Query C3


Language and Structured Query Language.

Total Marks: 100

Due Date: Friday 3rd Jan. 2025

Instructions:

1. This is a handwritten assignment. Do the assignment on A4 Pages.


2. This is an individual assignment.
3. Late submission will cause you to lose 10% per day.
4. Copied assignments will get straight ZERO.
5. There will be a quiz based on assignment in the same class of the submission date.
6. There are 2 questions in total. All questions carry equal marks.
Following is the schema and sample data of a estate agency.
Q1 For the information given above write RA & SQL statements to fulfill the following requirements.

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====================================

You might also like