Computer Science Homework Solutions
Problem
#158479

Simple SQL Commands - Property Rental

Please see the attached file.

Attached file(s):
Attachments
SQL.pdf  View File

Attachment Content Summary (Note: view attachment at the above link before purchasing. Actual attachment content may vary slightly from that shown below.)

SQL.pdf
1. Give the details of all viewings.

2. Give the address, pcode, telephone and fax number of the branch where
Jane Wee works.

3. Provide the name of the renter, the address and postal code of the rental
property, the date of viewing and the comments indicated of all viewings.

4. Provide owner's name of all rental properties.

5. Based on the renter's preference type, list all the rental_properties which
he/she can potentially view.
6. How many staff have salaries greater than $3500?
7. Find the average salary of each branch.
8. Count the total number of rental properties which each owner has.

9. List the name of the staff in charge, full address and rental prices of HDB
properties.

10. How many staff work for this rental company?

11. List the number of viewings and the identifier of the renters have made
more than 1 viewing?

12. Give the average rent which the renters in the data base are willing to
pay.

13. List the name and positions of staff who are earning more than the
average salary.

14. List the name of staff who are in charge of rental_properties as well as
those who are not in charge of any rental properties.

15. List the rental properties which have been viewed as well as those which
have not been.

16. Provide the area of the branch, name of the owner, name of staff in
charge and all details of rental_properties.

17. Count the number of staff who have salaries greater than the average
salary of the company.

18. List staff name, position and age and the areas they work in.

19. Find the HDB properties which have rental prices greater than the
average rental amount for HDB properties.

20. Provide the name of staff members who are sales executives and
the address, area and pcode of the branches which they work in.

Solution Summary

This solution deals with a set of SQL Queries based on Property Rental database.

Solution
What is this?
By OTA - Overall OTA Rating
Purchase Cost Now
$2.19 CAD (was ~$19.95)
Included in Download
  • Plain text response
  • Attached file(s):
    • sql_solution.doc
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
  • Using Unix alias to emulate DoS commands - Assume you are an experienced DOS programmer and you want to write UNIX shell scripts using DOS commands. Use the alias command so you can type the follow DOS commands and perform UNIX functions: a ...
  • Ls, cat, man, hexdump - Please assist with this assignment: 1. Practice the following commands on the Linux machine, and write a report on how you used them (screenshot will be fine): ls, cat, man, hexdump, xxd, dd, grep ...
  • UNIX Commands - You have a file called records.txt containing the list of employee id and employee names. Every line contains a single employee id immediately followed by (that means no space) the employee name in th ...
  • I am now in $HOME/sales/east directory. I want to have my login shell display me today’s date whenever I login every time by telnet. For this, what steps I have to do? - I have enclosed a file. I am new to UNIX and need help with lab questions. Can you review the simple questions doc. and offer inputs or solutions these are lab questions. I am not understanding the ...
  • UNIX - Using UNIX Please explain how to do the following: 1. Create a directory called class. 2. Move into that directory directory. 3. Create a text file, that contains what is your absolute path, ...
Browse