From the course: Access 2019: Queries
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Return records above or below average
From the course: Access 2019: Queries
Return records above or below average
- [Instructor] Using what we've seen about the SQL language, we can use it to help create dynamic query criteria based on summary values from the database. For example, if we wanted to find orders that have a total value above average, in order to do this, we first need to determine what the current average order value is. To do that, I'll go to the Create tab and we'll start a new Query in Design View. I'll add in the Orders Table and the Products Table. In order to find the value of each of our orders, what I need to do is multiply the quantity of the product ordered times the original product price. I'll come down here to the first empty Field and I'll right-click and go into my Zoom window. Then, I simply need to type in a reference to the Quantity Field in square brackets, and multiply that by the Price Field. Because there's only a single Quantity Field and a single Price Field across both of these two tables, I don't actually need to specify which table these are coming from…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Pull random records from the database2m 38s
-
(Locked)
Return records above or below average3m 43s
-
(Locked)
Process a column of values with domain functions5m 33s
-
(Locked)
Challenge: Identify the highest and lowest pricing markup22s
-
(Locked)
Solution: Identify the highest and lowest pricing markup5m 34s
-
(Locked)
-