Country: Barbados
You are in the Barbados edition. Type your country to switch.
Nigeria
The Americas
Loading every country…
No country matches. Check the spelling, or choose "Any country" for the Global edition.
You are learning in the Barbados edition, with examples in dollars and from Barbados.
Your learning profile
Data skills: SQL and Python basics · Lesson 1 of 7
How data is organised: tables, rows, columns and keys
Almost all business data lives in tables: one row per thing, one column per fact about it. This lesson explains rows, columns, data types, primary and foreign keys, why each fact should live in one place, and how a CSV file stores a table as plain text.
This lesson is complete in writing. A video for it is on its way.
What you will learn
- By the end you can describe a table in terms of rows, columns and data types.
- You can explain what a primary key and a foreign key do, using a sales and a products table.
- You can say why each fact should live in only one place, and what goes wrong when it does not.
- You can read a CSV file and picture the table it stores.
Key terms in this lesson
- Data type
- What kind of value a column holds, such as a whole number, a decimal, text or a date. Numbers stored as text cannot be added or averaged.
- Primary key
- A column or set of columns that identifies each row in a database table uniquely, such as ticker plus date in a daily price table.
- Foreign key
- A column in one table whose values point to the primary key of another table, such as a product code in a sales table that refers to a row in a products table.
- Relational database
- A database that stores data in tables of rows and columns and links the tables through shared key values, so each fact can be kept once and combined when needed.
- Database normalisation
- Arranging data so that each fact is stored in only one place, splitting repeated details into their own table and linking them with keys, which prevents copies drifting apart.
- CSV file
- Comma-separated values: a plain-text file in which each line is a row and commas separate the columns. The most common format for exchanging tables of data.
- Step 1: Why almost all data is a table, not started
- Step 2: Meet the example tables, not started
- Step 3: Columns have data types, not started
- Step 4: Primary keys and foreign keys, not started
- Step 5: One fact, one place, not started
- Step 6: Tables as plain text: CSV files, not started
About 10 min of reading
Step 1 of 6
Why almost all data is a table
Opening this step…
Step 2 of 6
Meet the example tables
This step opens when you finish the one above.
Step 3 of 6
Columns have data types
This step opens when you finish the one above.
Step 4 of 6
Primary keys and foreign keys
This step opens when you finish the one above.
Step 5 of 6
One fact, one place
This step opens when you finish the one above.
Step 6 of 6
Tables as plain text: CSV files
This step opens when you finish the one above.
Key takeaways
The key takeaways open when you finish every step.
Lesson quiz
6 questions. You need 85% to pass.
The quiz opens when you finish every step.
Stockertim Learn is education. It explains how investing works and never recommends buying or selling anything.