F2023 #02 - Modern SQL (CMU Intro to Database Systems)

  Рет қаралды 31,104

CMU Database Group

CMU Database Group

Күн бұрын

Пікірлер: 38
@exoneuromancer1672
@exoneuromancer1672 Жыл бұрын
Wow the audio is great! Fixed in 1 day. Officially best intro to database systems on youtube now. Andy you're the best 🎉
@MRKRRNZ
@MRKRRNZ Жыл бұрын
Can’t thank you enough for sharing all this information for free.
@pirogafk1
@pirogafk1 Жыл бұрын
Best course, thank you to make it public
@vm7240
@vm7240 Жыл бұрын
Thanks for listening to the comments and upgrading the mic 🙏
@andypavlo
@andypavlo Жыл бұрын
It's the same mic. I just need to move the receiver away from the USB-C hub and closer to me. I just forgot to do that for the first lecture.
@siddhantprakash.
@siddhantprakash. 10 ай бұрын
my notes: 38:49 - get total no of days from today to this year beginning 50:04 - Find the student with 2nd highest grade in each course. 1:11:42 - Find student record with the highest 'id' that is enrolled in at least one course.
@YeYe-u4u
@YeYe-u4u 9 ай бұрын
Thank you for sharing professor! 😄
@Sub0x-x40
@Sub0x-x40 4 ай бұрын
this is like the best audio ever
@potapow8684
@potapow8684 11 ай бұрын
57:49 - we (devs in the company i work in) do stuff like that in Clickhouse instead of using joins because we believe that CH will load the whole 2nd table into memory even if we don't need all of them.
@hugolatendresse7617
@hugolatendresse7617 5 ай бұрын
So why does the same query runs faster in DuckDB than in SQLite? Is it any of those answers given by ChatGPT? Columnar Storage Format: DuckDB uses a columnar storage format, which is more efficient for analytical queries that require scanning large amounts of data. This format allows for better data compression and faster data retrieval, especially for operations like aggregations and joins. SQLite uses a row-oriented storage format, which can be less efficient for these types of queries as it retrieves entire rows even if only a few columns are needed. Vectorized Execution: DuckDB employs a vectorized execution engine, which processes data in chunks (vectors) rather than row-by-row. This approach takes advantage of modern CPU architectures and allows for better CPU cache utilization and SIMD (Single Instruction, Multiple Data) optimizations. SQLite processes data row-by-row, which can be slower for large datasets. Parallel Processing: DuckDB supports parallel query execution, allowing it to utilize multiple CPU cores to perform operations concurrently. SQLite is designed for simplicity and portability, and while it can handle concurrent reads, its support for parallel query execution is limited. Optimized Query Planning: DuckDB includes advanced query optimization techniques that can generate more efficient execution plans for complex queries. SQLite has a simpler query optimizer, which might not produce as efficient plans for certain types of queries. Built-In Indexing and Compression: DuckDB automatically applies various indexing and compression techniques to improve query performance without requiring explicit indexing from the user. SQLite requires manual indexing, and its compression techniques are not as advanced as those in DuckDB.
@СергейЗинченко-т2к
@СергейЗинченко-т2к Жыл бұрын
its a good show, ty
@tylerrongione6696
@tylerrongione6696 6 ай бұрын
this is f*cking awesome
@millouwmills367
@millouwmills367 4 ай бұрын
BEEP
@olegpatraschku3736
@olegpatraschku3736 Жыл бұрын
anyone know umbra's paper that Andy might be referring to when he mentions flattening subqueries/nested queries ?
@andypavlo
@andypavlo Жыл бұрын
Unnesting Arbitrary Queries (Neumann et al. 2015) cs.emis.de/LNI/Proceedings/Proceedings241/383.pdf
@NostraDavid2
@NostraDavid2 6 ай бұрын
​@@andypavloTL;DR Codd was right, and the one feature that was being (originally) touted on why SQL was superior to Relational Algebra was actually an awful idea. Is that accurate?
@EmiliaKaida
@EmiliaKaida Жыл бұрын
Thanks for the series. But does this series not talk about normal joins (left, right, inner joins) too? I think it's not in the previous 01 video. It's a well-known concept, but as a refresher, might be helpful :) Plus normalization too.
@Paul-fn2wb
@Paul-fn2wb Жыл бұрын
Hi, this course is not about sql or data modeling. I think from the next lecture Andy will start talking about the internals of relational databases, i.e. how you could code your own DBMS. If you need to know how to use existing database systems, look for other courses. But still watch this one, it's well worth it.
@EmiliaKaida
@EmiliaKaida Жыл бұрын
@@Paul-fn2wb Really? In this video he did talk about sql :D Anyways, thanks for the info.
@Paul-fn2wb
@Paul-fn2wb Жыл бұрын
@@EmiliaKaida btw,, he will tell us how to implement joins!
@mephistotel87
@mephistotel87 Жыл бұрын
​@@EmiliaKaidaIt's just introduction.
@proudbox5091
@proudbox5091 Жыл бұрын
who is kraska and what did she do?
@NikolaiKononov
@NikolaiKononov 10 ай бұрын
What console or app do you use for connecting and querying the database?
@NostraDavid2
@NostraDavid2 6 ай бұрын
For Postgres you use psql.
@scootathan
@scootathan Жыл бұрын
How do I learn enough c++ to follow along with this course. The lectures are so easy to follow and then the homework feels completely impossible
@Onedeag-qw3yc
@Onedeag-qw3yc 8 ай бұрын
Project #1 is a C++ primer to get you ready for the rest of the course
@armsofundertow98
@armsofundertow98 6 ай бұрын
This is how you do it in Oracle btw SELECT TO_DATE ('2023-08-30', 'YYYY-MM-DD') - TO_DATE ('2023-01-01', 'YYYY-MM-DD') AS days FROM DUAL;
@ritikjangir718
@ritikjangir718 Жыл бұрын
how can I submit my attempt for the questions? (not a cmu student)
@andypavlo
@andypavlo Жыл бұрын
15445.courses.cs.cmu.edu/fall2023/faq.html#q7
@bagaichi5750
@bagaichi5750 Жыл бұрын
why the shade at tim kraska tho?
@NostraDavid2
@NostraDavid2 6 ай бұрын
I guess because he mistreats students and backstabs friends? 😅 I don't know anything about any actual drama though. Maybe it's just tough love for a friend, who knows.
@md.rahimuddin1738
@md.rahimuddin1738 Жыл бұрын
1 class represent entire the basic to advanced query. In class there have practice 3 languages(Oracle,MySQL,PostgreSQL) and give assignment 2 (SQPlite,DuckDB). what's the quality of a class and its assignment!!!!
@NostraDavid2
@NostraDavid2 6 ай бұрын
To answer the RANK query question: you can't do a GROUP BY instead, because SQL is inconsistent doodoo.
@NostraDavid2
@NostraDavid2 6 ай бұрын
Oh man, when I thought I couldn't dislike the inconsistencies about SQL any more, I find a new example why it's a shitty language.
@rogue_neuron
@rogue_neuron 7 ай бұрын
kraska is not a good guy
@mohameedsalah9518
@mohameedsalah9518 8 ай бұрын
your accent is very quick and i dont understand your talk
F2023 #03 - Database Storage Part 1 (CMU Intro to Database Systems)
1:19:11
CMU Database Group
Рет қаралды 32 М.
F2023 #04 - Database Storage Part 2 (CMU Intro to Database Systems)
1:17:25
CMU Database Group
Рет қаралды 19 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
02 - Modern SQL (CMU Intro to Database Systems / Fall 2022)
1:27:34
CMU Database Group
Рет қаралды 40 М.
The Birth of SQL & the Relational Database
20:08
Asianometry
Рет қаралды 208 М.
Apache Arrow DataFusion Architecture Part 1
30:53
Andrew Lamb
Рет қаралды 6 М.
#01 - Relational Model & Algebra (CMU Intro to Database Systems)
1:23:38
CMU Database Group
Рет қаралды 23 М.
#15 - Query Planning & Optimization (CMU Intro to Database Systems)
1:21:18
CMU Database Group
Рет қаралды 2,2 М.
F2023 #01 - Relational Model & Algebra (CMU Intro to Database Systems)
1:16:43
SQL Subquery | Complete Guide with Correlated Subquery | #SQL Course #15
1:21:28
04 - Database Storage II (CMU Databases Systems / Fall 2019)
1:13:50
CMU Database Group
Рет қаралды 40 М.
The State of Databases Today (w/ Andy Pavlo)
48:28
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН