Midterm Prep Flashcards

(7 cards)

1
Q

SQL sublanguages

A
DDL – Data Definition Language.
DML – Data Manipulation Language.
DRL/DQL – Data Retrieval Language/Data Query Language.
TCL – Transaction Query Language.
DCL – Data Control Language.
SCL – Session Control Language.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

DDL-Data Definition Language

A

– Used to define Database objects like TABLE,VIEW,SEQUENCE,INDEX,SYNONYM creation or modification or removing.
–CREATE,ALTER,DROP,TRUNCATE,RENAME are the DDL commands

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

DML – Data Manipulation Language

A
  • Used to manipulate the data in Database objects like table, view, index ..etc,.
  • INSERT, UPDATE, DELETE are the DML commands.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

DRL/DQL-Data Retrieval Language/Data Query Language

A

-used to retrieve information from the database objects. it is for read only purpose.
– SELECT is the DQL or DRL command.

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

TCL – Transaction Control Language

A
  • Transaction control statement are use to apply the changes permanently save into database.
  • COMMIT, ROLLBACK, SAVEPOINT, ROLLBACK TO are the TCL commands.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

DCL – Data Control Language

A

Data control statements are use to give privileges to access limited data or share the information between users.
-GRANT,REVOKE ,AUDIT,COMMENT, ANALYZE are the DCL commands.

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

SCL- Session Control Language

A

Session control statement are manage properties dynamically of a user session.
-ALTER SESSION,SET ROLL are the SCL commands.

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