SQL Fundamentals · Getting started
25 cards
What You Will Learn in This SQL Course
-
Quick check
You open a lesson. What will you meet, and in what order?
ATen questions first, and the slides only at the very end
The questions come after the slides, once the material has been shown.
BSlides with a quick check, then ten questions, then the practice where the concept has one
Right. Teaching slides and quick checks first, then the ten questions, then the six-step practice when the concept carries one.
CA different music store in each lesson, with new artists and albums
The data world never changes: the same small music store runs through the whole course.
2 / 25
-
Quick check
Only the tracks table is available. Which job is already inside block one?
APutting the track names next to the name of the artist who recorded them
Names from a second table arrive in block two, where you learn to join tables.
BTurning the whole table into one line with the average price of a track
One summary line for many rows is aggregation, and that is block three.
CPicking the rows that match a condition and sorting them by name
Right. Filtering and sorting the rows of one table is exactly what block one gives you.
5 / 25
-
Quick check
Why does the question about the albums of AC/DC need block two?
AThe title and the artist name live in two separate tables
Right. Joining them on the shared artist number puts the two facts side by side.
BThe answer is one number calculated from many album rows
Counting or adding many rows into a single number is block three.
CThe answer rewrites the stored rows instead of reading them
Nothing is rewritten here; the query only reads what is already stored.
8 / 25
-
Keep your progress in the app
That’s 3 of 10 quick checks. In the app they stay answered, and every lesson remembers where you left off.
Keep reading hereOpens in your browser. Nothing to install.
Start studying -
Quick check
Six album rows go in and four rows come out. What happened to them?
ATwo albums were deleted from the stored table by this query
A query that reads does not delete anything; all six albums are still stored.
BA filter removed the two albums with no matching artist row
Every album here has a matching artist, so no album was filtered out.
CThe rows were grouped by artist and each group counted
Right. Grouping puts the albums of one artist together, and the count replaces them with one row.
11 / 25
-
Quick check
What is the inner query doing for each artist in this example?
ASorting the artists table before the outer query reads it
The sorting is done by the last line of the outer query, not by the inner one.
BAsking whether that artist has any album at all
Right. It looks for one matching album, and the artist is kept only when none is found.
CReplacing the artists table with the albums table
Both tables stay in play; the inner query only checks the albums of one artist at a time.
14 / 25
-
Quick check
The insert names two columns, yet the stored row shows three values. Why?
AThe third column was declared with a default value of its own
Right. When the insert leaves the column out, the table definition supplies the value.
BThe database copied that value from another table
Nothing is copied from elsewhere; the value comes from the column definition.
CA second insert had already stored the same row
Only one row was inserted, and the key would not allow a second row with the same number.
16 / 25
-
Quick check
Both updates ran, yet only one new price survived. What decided that?
AThe second update was rejected because the new price was too high
No rule was broken here; both updates ran without complaint.
BEach update was saved on its own, so the last one wins
Inside a transaction the changes are not saved one by one; they are decided together at the end.
CThe work after the savepoint was undone before the commit
Right. Returning to the savepoint cancels only what came after it, and the rest is then committed.
19 / 25
-
Quick check
What does adding an index to the tracks table change?
AHow matching rows may be reached, not the rows returned
Right. An index offers a shortcut the database can take; the answer itself stays the same.
BThe result of the view, which then returns fewer rows
The view keeps its own condition, so an index does not change which rows it returns.
CThe column names, which the index rewrites for the table
An index is stored beside the table and leaves the column definitions untouched.
21 / 25
-
Quick check
The four tracks keep their four rows, but a new column appears. What produced it?
AA grouping that folded the four prices into one
Grouping would have replaced the four rows with fewer rows, and all four are still here.
BA choice made row by row from the price of that row
Right. The conditional expression looks at one price and returns one label for that row.
CA new column that was added to the stored table
Nothing was added to the table; the label exists only in the result of this query.
23 / 25
-
Quick check
You can already filter and sort one table. Which block comes next in this course?
ABlock five, where you design tables of your own
Designing tables comes later; you first learn to get answers out of the tables that exist.
BBlock eight, where the everyday functions live
Those small tools come last, once you can already query, join, summarise and define.
CBlock two, so an answer can use more than one table
Right. Joining tables is the step straight after reading a single table.
25 / 25
-
10 quick checks · then the test
In the app, finishing the quick checks opens this lesson’s 10-question test, and the ones you miss come back exactly when you’re about to forget them.
Take this lesson’s test → Next lesson: Relational Model and SQLOpens in your browser. Nothing to install.
Start studying
The whole course, on your computer and your phone
Lessons you can read, audio you can listen to on the way to work, and practice that remembers what you got wrong.
Opens in your browser. Nothing to install.
Start studying“This app is the ‘One Lake’ for preparing the certification exams. Really worth it.”
