SQL Fundamentals · Getting started
17 cards
Database Structure and Core Vocabulary
-
Quick check
A designer needs many customer occurrences that share the same attributes, with a declared kind of value for each attribute. Which structure meets both needs?
AA cluster of databases, with one client process dedicated to each attribute
A cluster groups databases and a client is a program; neither one describes repeated customer records.
BA stored file whose line order permanently identifies each individual customer
Line order in a file is not how a table identifies its records, and it declares no kind of value.
CA customer table whose rows follow named columns, each with its own data type
Right. The table gives the repeated rows, and the named columns with their data types give the shared structure.
3 / 17
-
Quick check
What should you assume about the order of the rows stored in a table?
AThe insertion position permanently identifies each row that was stored
Insertion position is not a guaranteed identity; the same table can present its rows in another order.
BNo row order is guaranteed unless a query sorts its result explicitly
Right. Column order is fixed inside a row, but row order only exists when a query asks for it.
CThe order of the columns automatically sorts the rows for every later query
Column order is about position inside a row; it says nothing about how rows are ordered.
5 / 17
-
Quick check
What does the term database cluster mean in PostgreSQL?
AThe collection of databases that one server instance manages
Right. Tables are grouped into databases, and the databases under one server instance form the cluster.
BThe fixed display order of the rows inside a single result
Row display order is not guaranteed at all, and it names nothing in the object hierarchy.
CThe set of client programs reached through one named column
Clients are programs that connect, and a column is an attribute of a table, not a way to group them.
8 / 17
-
Keep your progress in the app
That’s 3 of 7 quick checks. In the app they stay answered, and every lesson remembers where you left off.
-
Quick check
Which responsibility belongs to the PostgreSQL server process?
AActing as each stored row and fixing the position it holds on screen
A row is managed data inside a table, and screen position is not something the server guarantees.
BServing as the visual theme that a graphical client applies to results
Appearance belongs to whichever client is used; the server's job is storage and execution.
CManaging the database files, accepting connections, and performing database actions
Right. That is exactly the server's role in the client/server model, carried out on behalf of its clients.
11 / 17
-
Quick check
A reporting client runs on one host, PostgreSQL runs on another, and the report needs a file stored only beside the client. What follows from the architecture?
AThe server may not see that client-side file, or may need a different path for it
Right. Files reachable on the client machine are not necessarily reachable, or named the same way, on the server machine.
BThe file automatically becomes a database cluster that both of the hosts share
A cluster is a collection of databases under one server instance; an ordinary file does not become one.
CEach line of the file gains a guaranteed table position before any connection exists
Table positions are not guaranteed even for stored rows, and a file's lines are not table rows.
13 / 17
-
Quick check
Which hierarchy uses the PostgreSQL terms correctly?
AColumn, client, stored file, cluster, data type, and finally database
Clients and files are not levels of the object hierarchy, and the order given here reverses the real containment.
BRow, operating system, client theme, and cluster
An operating system and a client theme are outside the model entirely, and a statement is not a container.
CServer instance, cluster, database, table, and row with its columns
Right. One instance manages a cluster of databases, a database groups tables, and rows follow named, typed columns.
15 / 17
-
Quick check
Which summary keeps the data objects, the server, and the clients in their right places?
AA cluster is one table, rows keep a guaranteed order, and a web server manages the database files
A cluster is a collection of databases, row order is not guaranteed, and a web server acts as a client rather than a manager.
BOne instance manages a cluster of databases, and terminal, graphical, and web clients request the work
Right. The instance owns storage and execution, while clients of several kinds send requests to it.
CA column is a database, the server is one row, and every client stores its own copy of the files
Columns, rows, and servers are different kinds of thing, and file management belongs to the server alone.
17 / 17
-
7 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.
The whole course, on your phone
Lessons you can read, audio you can listen to on the way to work, and practice that remembers what you got wrong.