Presentation is loading. Please wait.

Presentation is loading. Please wait.

Field Table Sort Show Criteria OR

Similar presentations


Presentation on theme: "Field Table Sort Show Criteria OR"— Presentation transcript:

1 Field Table Sort Show Criteria OR
Question 1 Write a query to display each condo and the respective owner. List the Owner id, last name, and Unit Number. (In that order.) Query Name: Query 1 Tables Required: Owner/Condo Foreign Keys: Owner Id Join Type: Inner Field Owner Id Last Name Unit Number Table Owner Condo Sort Show x Criteria OR

2 Question 2 Write a query to summarize by owner, the number of condos they own. List the Owner id, last name, and the number of units owned. (In that order.) Query Name: Query 2 Tables Required: Owner/Condo Foreign Keys: Owner Id Join Type: Inner Field Owner Id Last Name Unit Number Table Owner Condo Total Group By Count Sort Show x Criteria OR

3 Question 3 Write a query to display the number of weeks each time a condo was rented. Display the Owner id, Last name, unit number, and total # of weeks. (In that order.) Query Name: Query Tables Required: Owner/Condo/RenterLog Foreign Keys: Owner Id/Unit Join Type: Inner Field Owner Id Last Name Unit Number #Weeks Table Owner Condo RenterLog Total Group By Sum Sort Show x Criteria OR

4 Field Table Total Sort Show Criteria OR
Question 4 Write a query to summarize by Owner the total number of weeks (all their condos combined) were rented, the average number of weeks, and the maximum number of weeks. Display the Owner id, Last name, total # of weeks, average number of weeks, and the maximum number of weeks. (In that order.) Query Name: Query Tables Required: Owner/Condo/RenterLog Foreign Keys: Owner Id/Unit Join Type: None Field Owner Id Last Name #Weeks Table Owner RenterLog Total Group By Sum Avg Max Sort x Show Criteria OR

5 Question 5 Write a query to display the condos owned by owner BR18 or GM50. List the Owner id, owner last name, and unit number. (In that order.). Query Name: Query Tables Required: Owner/Condo Foreign Keys: Owner Id Join Type: Inner Field Owner Id Last Name Unit Number Table Owner Condo Sort Show x Criteria “BR18” OR “GM50”

6 Question 6 Write a query to summarize by owner the number of condos owned by owner BR18 or GM 50. List the Owner id, last name, and total number of condos. (In that order.) Query Name: Query Tables Required: Owner/Condo Foreign Keys: Owner Id Join Type: Inner Field Owner Id Last Name Unit Table Owner Condo Total Group By Count Where Sort Show x Criteria “BR18” OR “GM50”

7 Question 7 The owners have decided to mark down all the condos for sale by 10%. Write a query to summarize by owner the appraised value of all their condos for sale. List the Owner id, last name, total appraised value of all condos owned by the respective owner and the total appraised value with the 10% reduction. (In that order.) Name the new field, New Value. Query Name: Query Tables Required: Owner/Condo Foreign Keys: Owner Id Join Type: Inner Field Owner Id Last Name Appraised Value New Value: [SumOfAppraisedValue] * .9 For Sale Table Owner Condo Total Group By Sum Expression Where Sort Show x Criteria Yes OR

8 Question 8 Write a query to summarize by renter#, their total number of payments and the total amount of these payments. List the Renter #, renter last name, total number of payments and total amount of the payments. (In that order.) Query Name: Query Tables Required: Renters/Payments Foreign Keys: Renter# Join Type: Inner Field Renter# LastName Payment Table Renters Payments Total Group By Count Sum Sort Show x Criteria OR

9 Question 9 Write a query to display each time a unit was rented
Question 9 Write a query to display each time a unit was rented. List the Unit Number, Renter#, renter last name, and number of weeks. (In that order.) Query Name: Query Tables Required: RenterLog/Renters Foreign Keys: Renter# Join Type: Inner Field Unit Renter# LastName #Weeks Table RenterLog Renters Total Sort x Show Criteria OR

10 Question 10 Each owner will receive a 20% commission on the total value of all the condos that are for sale. Write a query to summarize by owner the total commission each owner will receive. List the Owner id, last name, and their total commission of all the properties they have for sale. (In that order.) Name the new field, Commission. Query Name: Query Tables Required: Owner/Condo Foreign Keys: Owner id Join Type: Inner Field Owner id Last Name Commission: Sum([AppraisedValue] *1.2) For Sale Table Owner Condo Total Group By Expression Where Sort Show x Criteria Yes OR

11 Question 11 Write a query to summarize by renter#, the total number of weeks they rented the respective condo. List the renter#, renter first name, last name, and total number of weeks. (In that order.) Query Name: Query Tables Required: Renters/RenterLog Foreign Keys: Renter# Join Type: Inner Field Renter# FirstName LastName #Weeks Table Renters RenterLog Total Group By Sum Sort Show x X Criteria OR

12 Question 12 Write a query to summarize by unit number, the total number of times and the total number of weeks condo 500 or condo 300 was rented. List the unit number, total times and the number of weeks the unit was rented. (In that order.) Query Name: Query Tables Required: RenterLog Foreign Keys: None Join Type: None Field Unit #Weeks Table RenterLog Total Group By Count Sum Where Sort Show x Criteria “500” or “300” OR


Download ppt "Field Table Sort Show Criteria OR"

Similar presentations


Ads by Google