sql Flashcards
What are database languages?
Languages that allow databases to complete operations
Use DDL (data description language) or
DML ( data manipulation language)
What is CRUD?
Create (insert new data)
Read (read and query data)
Update (modify)
Delete (delete unneeded data)
What is SQL?
A declarative language designed for relational databases to create, modify, drop, insert, update, delete and select
table formatting for creating tables?
CREATE TABLE table1_name
(
column1 dataType [CONSTRAINT],
**
PRIMARY KEY (column1_name),
FOREIGN KEY (column1_name) REFERENCES (table2_name) (column_name),
UNIQUE (column_name),
);
unique is for all values needed as unique
primary key can be multiple so can list
What is the insert formula?
INSERT INTO tableName
(column1, column2, … , columnN)
VALUES (value1, value2, … , valueN);
What is the select formula?
SELECT (attribute1, attribute2, attributeN)
FROM (table1, table2, tableN)
WHERE [Condition];