What are the five sublanguages of SQL?
Each sublanguage serves a specific purpose in managing and interacting with databases.
What does Data Definition Language (DDL) do?
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.
What is the purpose of Data Query Language (DQL)?
Retrieves data from the database
DQL is essential for querying and obtaining information stored in the database.
What actions are performed by Data Manipulation Language (DML)?
DML is used to manipulate rows of data stored in a database.
What does Data Control Language (DCL) control?
Database user access
DCL is used to grant or revoke permissions to users in a database.
What is the function of Data Transaction Language (DTL)?
Manages database transactions
DTL ensures that transactions are processed reliably and adhere to ACID properties.
What does DML stand for in database management?
Changing/Choosing ROWS of data in a table
DML includes operations such as DELETE, UPDATE, INSERT, and SELECT.
What does DDL refer to in the context of databases?
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.
List the DML operations.
These operations are used to manipulate data within a database.
List the DDL operations.
These operations are used to define or modify the structure of a database.
Fill in the blank: DML stands for _______.
Data Manipulation Language
DML is used for managing data within schema objects.
Fill in the blank: DDL stands for _______.
Data Definition Language
DDL is used for defining and modifying database structures.