SQL Flashcards
1
Q
Creating a Table Syntax
A
CREATE TABLE “Table Name”
([column1] [data type])
CREATE TABLE employee_num
(firstname varchar (15), lastname varchar (20), age number (3), salary (7,2) \<-- (0000000.00)
2
Q
CHAR(SIZE)
A
Fixed-length character string, Size is specified in parenthesis
3
Q
VARCHAR(SIZE)
A
Variable-length character string. Max size is specified.
4
Q
NUMBER(SIZE)
A
Number value with a max number of column digits
5
Q
DATE
A
Date value
6
Q
NUMBER(size,d)
A
Number value (Max number places, Max decimal places)
7
Q
INSERT Data
A
INSERT into employee
(first, last, age, address, city, state)
VALUES ('Luke', 'Duke', 45, '2130 Boars Nest', 'Hazard Co', 'Georgia');
8
Q
A