Professional Documents
Culture Documents
Relational Data Base
Relational Data Base
INTRODUCTION TO SQL
Izzy Weber
Curriculum Manager, DataCamp
Course goals
1. Understand databases and their structure → Chapter 1
INTRODUCTION TO SQL
Introducing databases
INTRODUCTION TO SQL
Introducing databases
INTRODUCTION TO SQL
Relational databases
De ne relationships between tables of data inside the database
INTRODUCTION TO SQL
Database advantages
More storage than spreadsheet
applications
INTRODUCTION TO SQL
Database advantages
INTRODUCTION TO SQL
SQL
Short for Structured Query Language
SELECT *
The most widely used programming FROM patrons
language for databases LIMIT 30
INTRODUCTION TO SQL
Let's practice!
INTRODUCTION TO SQL
Tables
INTRODUCTION TO SQL
Izzy Weber
Curriculum Manager, DataCamp
A seat at the table
Table rows and columns are referred to as records and elds
Fields are set at database creation; there is no limit to the number of records
INTRODUCTION TO SQL
Good table manners
be lowercase
INTRODUCTION TO SQL
Laying the table: records
A record is a row that holds data on an individual observation
INTRODUCTION TO SQL
Laying the table: fields
A eld is a column that holds one piece of information about all records
INTRODUCTION TO SQL
More table manners
be lowercase
have no spaces
be singular
INTRODUCTION TO SQL
Assigned seats
Unique identi ers are used to identify records in a table
INTRODUCTION TO SQL
The more the merrier
INTRODUCTION TO SQL
Let's practice!
INTRODUCTION TO SQL
Data
INTRODUCTION TO SQL
Izzy Weber
Curriculum Manager, DataCamp
SQL data types
Di erent types of data are stored di erently and take up di erent space
INTRODUCTION TO SQL
Strings
INTRODUCTION TO SQL
Integers
INTRODUCTION TO SQL
Floats
INTRODUCTION TO SQL
Schemas
INTRODUCTION TO SQL
Database storage
INTRODUCTION TO SQL
Let's practice!
INTRODUCTION TO SQL