Why Databases Are Awesome
1. A collection of data
A Phone Book!
Andrews, Archie - (949)345-2222
Cooper, Betty - (212)246-9846
Flanders, Ned - (415)987-3451
Jones, Jughead - (415)888-3777
Lodge, Veronica - (714)332-0981
Snow, Jon - (949)621-1908
Stark, Ned - (310)119-6501
Find Ned Flanders' Phone Number
Find People With First Name "Ned"
Find All Phone Numbers With Area Code 415
Find All People Who Have a 3-letter First Name
A Quick Example
1. A collection of data
2. A method for accessing and manipulating that data
Andrews, Archie - (949)345-2222
Cooper, Betty - (212)246-9846
Flanders, Ned - (415)987-3451
Jones, Jughead - (415)888-3777
Lodge, Veronica - (714)332-0981
Snow, Jon - (949)621-1908
Stark, Ned - (310)119-6501
Find Ned Flanders' Phone Number
Find People With First Name "Ned"
Find All Phone Numbers With Area Code 415
Find All People Who Have a 3-letter First Name
A Quick Example
Vs.
Database
DBMS
Your App
"Database"
Database
DBMS
PostgreSQL
MySQL
SQLite
Oracle Database
A structured set of computerized data with an accessible interface
Well...why does data matter?
It's ok if you haven't!
Data has always played an important role in industries
But now, data itself is a huge booming industry!
"Find All Users"
"Find All Users Who Are 18 Years Old"
"Add A New User With Username 'JumboJim'"
Delete Every Single User!
SELECT * FROM Users WHERE Age >= 18;
Find All Users Who Are 18 Or Older
Relational Databases
All Use SQL
}
SELECT * FROM Users WHERE Age >= 18;
SELECT * FROM Users WHERE Age >= 18;
1. Once you learn SQL, it's pretty easy to switch to another DB that uses SQL
2. What makes databases (DBMS) unique are the features they offer, not the language
SELECT * FROM animals;
SELECT species, status FROM animals;