SQL Flashcards
1
Q
CREATE Table and INSERT Data
A
Create Table CREATE TABLE ( , … PRIMARY KEY ()); Data Types INT, String, Money, char, … Insert Data INSERT INTO VALUES (value1, value2, value3, ...);
2
Q
READ, SELECT, and WHERE
A
Selecting specific columns
SELECT FROM ;
Selecting specific rows
SELECT FROM WHERE ;
3
Q
Updating Single Values and Adding Columns in SQL
A
UPDATE SET = WHERE = ;
Adding a new column
ALTER TABLE (Add, Delete, or Modify Columns in a Table)
ALTER TABLE ADD ;
4
Q
DELETE
A
DELETE FROM WHERE ;
5
Q
Relationships, Foreign Keys, and Inner Joins
A
Foreign Key
Links between table
Inner Join