You are on page 1of 8

DATABASE DESIGN

USING MYSQL
What is A Database?
WHAT IS A DATABASE?

A database is an
ordered collection of data

The word “Database” can be quite vague. People tend to clump a


combination of 3 things when referring to a database

• The Data
• The Database Management System
• Database Application
DATABASE MANAGEMENT SYSTEMS
(DBMS)
A “DBMS” is Software that is designed to model data and
provide interaction with a user

• Data is normally stored in one or more files


• Data is usually stored in tables
• Tables contain rows and columns much like a spreadsheet
• Data can be cross referenced among tables. This functionality
is used in “Relational Databases”
such as MySQL
POPULAR DBMS’S

• MySQL • SAP
• PostgreSQL • FoxPro
• SQLite • dBASE
• Microsoft SQL Server • MariaDB
• Oracle
SIMPLE EXAMPLE

Here is an example of a very simple table inside of a database

id first_name last_name email


1 Brad Traversy brad@something.com
2 John Doe john@something.com
3 Jane Doe Jane@something.com

Database Name: MyStore


Table Name: Users
Columns/Fields: id, first_name, last_name, email
Rows/Records: 3 Users
INTERACTING WITH A DATABASE

Some common functions when working with a database…

• Define
• Create • Query
• Select • Update
• Delete
WHAT IS SQL?

SQL (Structured Query Language) is a special purpose


programming language that allows developers to interact with
the data in a database
• Based on relational algebra and tuple relational calculus
• Data definition and data manipulation language

• Perform CRUD (Create, Read, Update, Delete)


COMMON DATABASE MODELS

• Relational Database (MySQL) • Multimedia Database

• Object Oriented Database • Flat Database

• Object Relational Database • Network Database

• Distributed Database • Hierarchical Database


• NoSQL Database (MongoDB)

You might also like