Access includes a built-in function that generates random numbers. This can be useful when spot checking data or pulling a random sampling of records to perform scientific analysis on. In this movie, Adam demonstrates how to have the database select a random collection of records to ensure bias is kept out of the survey results.
- [Voiceover] Occasionally, you'll wanna do a spot check…or perform an audit on the data that's in your database.…And while you don't want or don't need to review…every single record, it would make sense to review…a random sampling of the information that you're storing.…Let's suppose you needed to do a customer survey…of 50 customers, and you wanted to be sure…to get a random customer sampling to call…so you don't introduce bias into the survey results.…Here's how you can have Access pull up the records for you.…We'll start with a new query in Design view,…and I'll add in my Customers table.…Then we're gonna choose the CustomerID,…FirstName, LastName, and Phone number fields.…
In the fifth column, I'm gonna right-click and choose Build…to go to the Expression Builder.…We'll go into our Functions,…into the functions built into Access,…then we'll come down to the Math category here.…There's a function called Random, or Rnd,…and if I take a look at the syntax down here,…we can see that it returns a single,…which is a data type--a numeric data type--…
- Creating a query with the wizard
- Defining query criteria
- Using comparison and wildcards in criteria
- Working with joins
- Creating parameter queries
- Using the built-in functions in Access
- Summarizing data
- Aggregating records with totals
- Working with dates
- Creating alternative queries: unmatched, crosstab, and more
- Writing queries with SQL
Skill Level Intermediate
1. Introduction to Access Queries
2. Creating Simple Select Queries
3. Creating Parameter Queries
4. Use the Built-In Functions
5. Aggregating Records with a Totals Query
6. Working with Dates in Queries
7. Understanding Program Flow Functions
8. Alternative Query Types
9. Writing Queries with Structured Query Language
Explore the basics of SQL5m 59s
10. Useful Query Tricks
- 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.