The DateAdd() function allows the database to specify a time frame such as "…the past 30 days", or "…within the last year," and return records within that time frame. In this movie, Adam uses DateAdd() to identify the due date for an employee review and to locate recently hired employees based on the current date.
- [Voiceover] The date-add function…will allow us to specify a time frame,…such as the past 30 days,…or within the last year,…and return records within that time frame.…Let's see how it works…by creating a new query in "design view"…that's about our employees again.…I'll go ahead and close the "show table" window,…and then we'll add our employee ID…and their hire date for reference.…In the third column, we're gonna right click…and go into our expression builder,…and then we'll go ahead and find the "function"…underneath "functions," "built-in functions,"…"date and time," and here we'll find the…"date add" function.…If you click on it one time, you'll see the text down here,…and we can see that it describes a "date" data type.…
It's gonna contain a date…to which a specified time interval has been added.…We have three arguments, the interval, a number, and a date.…Let's go ahead and double-click on the "date add" function…to add it up here into our syntax.…Now, the interval is going to be the same that we saw…with the "date diff" function.…
- 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.