Save this video free

Stats 21 - Lecture 25 - SQL part 2

Miles Chen · 25:23 · Watch on YouTube

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Miles Chen demonstrates SQL query techniques on a sample employee database, using SQLAlchemy to retrieve results and pandas DataFrames to inspect them. Examples cover string concatenation, salary classification with CASE, random ordering, NULL handling with COALESCE, and pattern matching with LIKE; Chen also outlines a final exam question pool of about 100 questions, with 40 to 50 selected for the exam.

Key takeaways

Chapters

0:00 SQL Course Context, UCLA O'Reilly Resources, and Python Setup
4:29 Employee and Department Tables, Plus SQL String Concatenation
9:02 CASE Salary Categories and ORDER BY RANDOM() Sampling
12:20 IS NULL, COALESCE, and LIKE Patterns for Employee Records
17:00 More O'Reilly SQL References and Final Exam Question-Pool Plan

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:03 All right. Well, uh thank you all for uh joining me and uh I hope you all had a good uh Thanksgiving um uh holiday. And um and I apologize this is labeled the wrong week. It should be week 10 Monday. Uh but yeah, happy Monday and um I uh yeah, stay safe out there. There we had some earthquakes. I guess a storm is coming. So, um hope you guys are all safe and doing well. Um I am still working on the final exam. What I'm thinking of doing is I'm going to release a pool of questions um for and then the final exam will consist of uh drawing uh questions from

0:52 that pool. It It's going to be a fairly large pool of multiple choice questions that cover um you know, a a range of the different topics and uh things that we covered in the class. Um but uh but yeah, that's what I'm thinking. Um I'm hoping to get all of that um up and published by um by by Wednesday so you can start studying uh for the final. Okay. Um with that said, uh let's take a look at um today's lecture. And we are just kind of continuing on um with uh more uh SQL stuff. And so um

1:44 uh these examples come from this textbook uh from O'Reilly and you can um read it. Just type in uh we're looking for University California, Los Angeles. Okay, we'll click sign in. And um takes you to your regular UCLA page. And then where's my Here we go. Two-factor authentication. Please recognize my finger. There we go. Um And yeah, you can um you can read

2:31 through it. There's um O'Reilly has uh quite a bit of stuff covering um SQL

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Miles Chen.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.