The Union query joins multiple tables or queries together in to a single recordset. Though useful, it cannot be constructed using the query designer in Access and is only created using the SQL view and writing code manually. In this movie, Adam demonstrates how to join customer and employee data into a single email list.
- [Voiceover] The Union Query is a special type of query…within Access, and it's used to combine the results…of two or more queries into a record set.…In order to accomplish this task though, we need to…make use of the SQL Editor.…The Union Query simply can not be constructed…in the Design View.…Now before we start with our Union Query,…we need to make sure that we know the themes…of the fields for our tables.…In this case, I wanna create a combined master email list…that includes all of the emails from both…my Customers Table, and the Employees Table.…If I take a look inside of the Customers Table,…we'll see that we have the column's first name,…last name, and way over here on the far right,…the E name email.…
If I take a look at the Employees Table,…I have the same names,…first name, last name, and way over here,…we have email.…Let's go ahead and close this down and start…our Union Query.…I'm gonna go to the Create tab, and we'll…go into Query Design.…First, I'm gonna add in my Customers Table…and close the Show Table window.…
- 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.