Why are relational databases important in data analysis?
They store large datasets in an organized way, allowing you to query and analyze data efficiently.
What is SQL and why is it useful?
SQL (Structured Query Language) is used to communicate with databases to retrieve, filter, and manipulate data.
Name the main components of a relational database.
Tables, rows (records), columns (fields), keys
A ______ is a collection of related data organized into rows and columns.
Table
A ______ uniquely identifies each record in a table.
Primary key
A ______ links a field in one table to a primary key in another table.
Foreign key
Which of these is an example of a primary key?
A) Customer ID
B) Customer Name
C) City
D) Purchase Amount
A) Customer ID
What is the purpose of a foreign key?
To create a relationship between two tables, allowing data to be linked logically.
Name one benefit of using relational databases over spreadsheets.
Handles large datasets, enforces data integrity, supports complex queries, avoids redundancy.
Which SQL command is used to retrieve data from a table?
A) INSERT
B) SELECT
C) UPDATE
D) DELETE
B) SELECT
SQL commands like SELECT, WHERE, and JOIN are used to ______ data.
Query / retrieve / filter
Why is understanding relational concepts important before writing SQL queries?
It helps you know how tables are connected and how to retrieve meaningful insights without errors.