Answered step by step
Verified Expert Solution
Question
1 Approved Answer
pls answer 1-4 Page view Robo - + wws WUNO ums Son JU low: Branch g brancho street aty postcode Staff staffio Name Name Client
pls answer 1-4
Page view Robo - + wws WUNO ums Son JU low: Branch g brancho street aty postcode Staff staffio Name Name Client g diento flame Name tello prefType maxRent position sex DOB salary brancho Mal Property For Rent g property to street aty postcode type rooms rent Owner No staffo brancho Viewing g diento g property viewDate comment Private Owner ownerlo frame Name ADDress telo SQL Questions: 1. Write an SQL statement to list the staff full name and position of all staff who manage a property (propertyForRent). Sort the output according to postcode of the property in descending order (screenshot required). 2. List the highest salaried staff and show their first name and their position: give the column heading: 'Highest_Salary'. 3. Use an SQL statement to show how many properties does each owner own? 4. Show all the properties that are listed in each branch and the name of their owner: list the branch name, owner name along with the Property number and city. 5. Write an SQL statement to list all the properties with the type 'Flat'. 6. Write an SQL statement to list all the properties that have been viewed by clients less than 3 times and with comments containing something about rooms. More precisely, list the client full name, the client email, the propertyNo, the street of the property, and comments made for the viewings for that property. Order the output first by the client fName, then by the propertyNo (screenshot required). 7. Show the date of viewing and the number of times that each property for rent has been viewed and display the heading "Times Viewed for the resultant column. Sort by highest times viewed and most recent viewing 8. For the client 'Edward', 'Scissorhands', use SQL command to change this name to your own student name 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