The challenging part of this problem is the report. It's easy to select the data, but properly formatting the results required a join as well as a subquery.
- [Man] At first, this problem appears easy.…A simple search.…However, the report format was specific,…and did not lend itself to simple SQL.…The challenge is to not only find the information,…but present it in the format requested.…I'll show you three steps in this solution.…First, the solution with the correct information…but the wrong format.…
Next, we need to spend some time…understanding SQL subqueries.…Then finally we can combine that knowledge and create…a subquery plus a main query to produce the correct format.…I'll start with the SQLite table we created for problem one,…and I'm going to open it up in DB Browser For SQLite.…That's the data file we're looking at right now.…Then, I'll explain the three steps in the solution.…
All of the SQL code that we'll be using is present…in the exercise files folder.…After watching this series of videos, you'll learn about…embedded queries and report generation with SQLite.…
- Strengths and weaknesses of SQLite
- Creating a database
- Joining data sets
- Calculations with SQLite and Python
- Searching a database
- Subqueries and queries in SQLite
- CRUD operations in SQLite with R
Skill Level Intermediate
1. SQLite in Five Minutes
2. Create a Database
3. Join Two Datasets
4. Search a Database
5. Create, Read, Update, and Delete Operations
6. Averages and Calculations
- 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.