Question: Write query that returns all the data from Staff table. Write a query to retrieve propertyNo, street, staffNo from PropertyForRent where staffNo is not null

Write query that returns all the data from Staff table.

Write a query to retrieve propertyNo, street, staffNo from PropertyForRent where staffNo is not null from PropertyForRent.

Write a query with Distinct staffNo from PropertyForRent

Write a query that list PropertyNo and calculates the yearly rent displayed as yealyRent for each listing in PropertiesForRent,. Sort by highest to lowest

Write a query that list all the tuples where the rent > 500. SORT by ascending rent values from PopertiesForRent

Write a query that lists all the properties for rent that have rent less than 500 and are located in Glasgow from PopertiesForRent .

Write a query where the rent is between 400 and 600 in Client relation.

Rewrite the query above for Not Between

Write a query where fName has a J in it, in Staff relation

Write a query where comment Is Not Null in Viewing.

Write a query for PropertiesForRemnt that use a two keys type and rent, with the second key, rent, being descending.

Write a query that counts the number of clients in Client as noClients from Client relation

Write a query that Sums, averages, and finds min and max rent from PropertiesForRent

Write a query that counts the number of properties for rent as noPropForRent, averages the rent value and groups by branchNo from PropertyForRent

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!