Join Adam Wilbert for an in-depth discussion in this video Embedding SQL code in queries, part of Access 2010: Queries in Depth.
Sometimes you will want to include records in your query based upon the…results of another query.…Often this may include a calculation based upon your data.…For instance, instead of just selecting values that are above or below a…specific and static number, you may want to select values that are above or…below the average of the entire set.…In other words, you'll first need to find out what the mathematical average is…and then use that value to define the criteria.…You can do this by writing an SQL statement right into the field or…criteria rows of your query.…
So let's construct a query that asks which customers have placed above average orders.…Let's go into our Create menu and then Query Design.…We'll add our Orders table and our Products table and click Close.…So the first thing we need to do is find the average order total across…our entire database.…We can do that by adding Price to our query, turning on our Totals row, and then…changing the Group By to Average.…
If I run this query, I see that my average price over the whole database is $29.87.…
- Naming conventions and best practices
- Working with joins
- Using comparison operators
- Defining criteria for select queries
- Creating parameter queries
- Creating calculated fields
- Working with dates and times
- Using the Expression Builder
- Creating conditional statements
- Making, deleting and appending records
- Building reports
Skill Level Intermediate
Access 2010 Power Shortcutswith Alicia Katz Pollock3h 43m Intermediate
1. Creating Queries in Access
2. Creating Simple Select Queries
3. Creating Parameter Queries
Creating a combo box4m 30s
4. Applying Aggregate Calculations (aka Totals Queries)
5. Working with Dates in Queries
6. Understanding Conditional Statements
7. Linking It All Together
8. Alternative Query Types
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.