sql Flashcards

1
Q

What are database languages?

A

Languages that allow databases to complete operations
Use DDL (data description language) or
DML ( data manipulation language)

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

What is CRUD?

A

Create (insert new data)
Read (read and query data)
Update (modify)
Delete (delete unneeded data)

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

What is SQL?

A

A declarative language designed for relational databases to create, modify, drop, insert, update, delete and select

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

table formatting for creating tables?

A

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

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

What is the insert formula?

A

INSERT INTO tableName
(column1, column2, … , columnN)
VALUES (value1, value2, … , valueN);

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

What is the select formula?

A

SELECT (attribute1, attribute2, attributeN)
FROM (table1, table2, tableN)
WHERE [Condition];

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