Sublanguages Flashcards

1
Q

DCL

A

Data Control Language, setting user permissions (GRANT, REVOKE)

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

DDL

A

Data Definition Language, working with database structure (CREATE, ALTER, TRUNCATE, DROP) EX: CREATE TABLE (Schema)[TableName] (Column definitions (Constraints))

ALTER TABLE [TableName] ADD (Column) [Column definition] ADD (Constraint clause) DROP [column] [cascade] DROP Constraint ALTER COLUMN [definition]

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

DML

A

Data Manipulation Language, working with the rows of data itself (INSERT, UPDATE, DELETE) EX: INSERT INTO [TableName] [columns] VALUES (data input) SELECT (drop entire result set into table)

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

DQL

A

Data Query Language, retrieving rows of data (SELECT). EX: SELECT [columnList] FROM [tableList] WHERE [conditionList] GROUP BY [columnList] //For aggregate functions HAVING [condition] ORDER BY [columnList]

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

TCL

A

Transaction Control Language, managing transactions (COMMIT, ROLLBACK, SAVEPOINT)

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

Sequences

A

Generate numeric sequence, mostl for creating/managing primary keys, EX: CREATE OR REPLACE SEQUENCE [Name] MINVALUE value, MAXVALUE value, START WITH value, INCREMENT BY value, CACHE value

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

Triggers

A

Series of PL/SQL commands which execute in response to some DML action, either before or after.

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

Views

A

Virtual table that displays the results of a SELECT statement, lets you reuse and store complex queries

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

Indexes

A

Physical ordering of a column or group of columns, having unique indexes

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

Alias

A

The AS or IS keyword allows you to set a Table name or column name as a short variable.

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

Aggregate

A

Functions (AVG, MIN, MAX, SUM, COUNT) perform an action on an entire column

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

Scalar functions

A

(LOWER, UPPER, NVL) operate on individual entries

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