Use the JOIN command to ask questions that involve more than one table.
- [Instructor] One advantage of working with databases,…rather than just spreadsheets,…is that it can be easier to use data…for more than one table.…Of course, you can work with data…across many spreadsheets using a lookup function,…and in a database, to accomplish the same thing,…we use the JOIN keyword.…There are a few kinds of JOINs, actually,…but we'll just look at one in this video.…The idea behind a JOIN is that we're asking…for pieces of data, or records,…that somehow associate with each other,…that connect in some way,…with some common piece of information…that we tell the database to match up…from one table to the next.…
In our sample database here,…the common element is the abbreviation for the state name.…In one table I have information about some people,…and in another table, called states,…I have some information about states in the U.S.…I have their name, their abbreviation,…and what census region and division they're part of.…We could perhaps use this information…to print up custom shirts for people…
- What is SQL?
- Asking for data with SELECT
- Limiting database responses
- Organizing responses
- Asking for data from two or more tables
- Understanding join types and data types
- Transforming data
- Performing math
- Adding and modifying data in a table
Skill Level Beginner
1. Ask for Data from a Database
2. Ask for Data from Two or More Tables
3. Data Types, Math, and Helpful Functions
4. Add or Modify Data
- 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.