COMP3311 Final Exam 21T3 The University of New South Wales
COMP3311 Database Systems
Final Exam 21T3
Database Systems
[Front Page] [Notes] [Database] [Course Website] [Cheat Sheets]
[Q1] [Q2] [Q3] [Q4] [Q5] [Q6] [Q7] [Q8] [Q9] [Q10]

Question 3 (5 marks)

Write an SQL view that gives the cheapest unsold house(s).

Define the view as q3(id,price,street,suburb), where the attributes are:

The output should be ordered by property ID. What the output should look like:

property=# select * from q3;
  id   |  price  |       street        |  suburb   
-------+---------+---------------------+-----------
 46083 | 1742000 | 86 Leonard Avenue   | Kingsford
 46634 | 1742000 | 88 Broadbent Street | Kingsford
(2 rows)

Instructions:

End of Question