Languages Flashcards

(12 cards)

1
Q

What are the five sublanguages of SQL?

A
  • Data Definition Language (DDL)
  • Data Query Language (DQL)
  • Data Manipulation Language (DML)
  • Data Control Language (DCL)
  • Data Transaction Language (DTL)

Each sublanguage serves a specific purpose in managing and interacting with databases.

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

What does Data Definition Language (DDL) do?

A

Defines the structure of the database columns

Includes commands like CHANGE/ADD/DROP columns, ADD FOREIGN KEY, CREATE VIEW, CREATE INDEX, DROP TABLE, DROP VIEW, DROP INDEX.

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

What is the purpose of Data Query Language (DQL)?

A

Retrieves data from the database

DQL is essential for querying and obtaining information stored in the database.

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

What actions are performed by Data Manipulation Language (DML)?

A
  • DELETE
  • UPDATE
  • INSERT
  • SELECT

DML is used to manipulate rows of data stored in a database.

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

What does Data Control Language (DCL) control?

A

Database user access

DCL is used to grant or revoke permissions to users in a database.

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

What is the function of Data Transaction Language (DTL)?

A

Manages database transactions

DTL ensures that transactions are processed reliably and adhere to ACID properties.

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

What does DML stand for in database management?

A

Changing/Choosing ROWS of data in a table

DML includes operations such as DELETE, UPDATE, INSERT, and SELECT.

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

What does DDL refer to in the context of databases?

A

Altering COLUMNS in a table or the ALTERing the STRUCTURE of a table

DDL operations include ALTER TABLE, CREATE VIEW, CREATE INDEX, CREATE TABLE, DROP VIEW, DROP INDEX, and DROP TABLE.

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

List the DML operations.

A
  • DELETE
  • UPDATE
  • INSERT
  • SELECT

These operations are used to manipulate data within a database.

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

List the DDL operations.

A
  • ALTER TABLE
  • CREATE VIEW
  • CREATE INDEX
  • CREATE TABLE
  • DROP VIEW
  • DROP INDEX
  • DROP TABLE

These operations are used to define or modify the structure of a database.

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

Fill in the blank: DML stands for _______.

A

Data Manipulation Language

DML is used for managing data within schema objects.

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

Fill in the blank: DDL stands for _______.

A

Data Definition Language

DDL is used for defining and modifying database structures.

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