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, ...);
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

READ, SELECT, and WHERE

A

Selecting specific columns
SELECT FROM ;
Selecting specific rows
SELECT FROM WHERE ;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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 ;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

DELETE

A

DELETE FROM WHERE ;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Relationships, Foreign Keys, and Inner Joins

A

Foreign Key
Links between table
Inner Join

How well did you know this?
1
Not at all
2
3
4
5
Perfectly