-
"A database is an organized collection of structured information or data, typically stored electronically in a computer system. -Oracle Website"
-
"Database Management System A software application that helps store, load and update data in the database."
-
"An entity is single unique object in the real world that is being mastered. Examples of an entity are a single person, single product, or single organization -IBM Website"
- One-to-One One entity directly relates to only other entity
- One-to-Many One entity has a relationship with one or more entities
- Many-to-Many More than one entity has a relationship with one or more other entities
- An entity-relationship model, also called an entity-relationship diagram (ERD), is a graphical representation of entities and their relationships to each other. Contains //
- Must be unique for each record
- Cannot contain null values
- Can be a composite of multiple fields
- Each foreign key is a reference to a primary key
- Keeps tables in the relationship with each other
- SELECT field_name
- FROM table-name
- "A Join clause is used to combine rows from tow or more tables, based on a related column between them. -W3Schools website"
- WHERE
- ORDER BY
- GROUP BY
- HAVING
- LIMIT
- Represents an empty value or cell
- Assigned at creation of the record
- Programmatically assigned null
- Not the same as a zero value
- Not the same as a blank or space
- Filters data to a specific subset of information
SELECT field_name
FROM table-name
WHERE filename LIKE '%characters%'
- Enclose in single quotes: '%mary%'
- Searches are not case-sensitive
SELECT field_name
FROM table-name
WHERE filename IS NULL
SELECT field_name
FROM table-name
WHERE filename IS NOT NULL
DELETE from Customer where State = 'Texas';
ROLLBACK;
ALTER TABLE new_db.organization MODIFY COLUMN stripe_id VARCHAR(255);
ALTER TABLE table_name
ADD column_name datatype;
CREATE TABLE Users
(
UserID int,
FirstName varchar(100),
LastName varchar(100),
City varchar(100)
);