Podcast
Questions and Answers
Which command is categorized as a Data Definition Language (DDL) command?
Which command is categorized as a Data Definition Language (DDL) command?
- INSERT
- CREATE (correct)
- UPDATE
- SELECT
What is the primary purpose of the DML command 'DELETE'?
What is the primary purpose of the DML command 'DELETE'?
- To update existing records
- To retrieve data from a database
- To remove records from a database table (correct)
- To insert new data into a table
Which of the following DDL commands is used to change the structure of an existing database object?
Which of the following DDL commands is used to change the structure of an existing database object?
- TRUNCATE
- COMMENT
- ALTER (correct)
- DROP
What does the DML command 'INSERT' do?
What does the DML command 'INSERT' do?
Which command would you use to completely delete a table and all its contents from the database?
Which command would you use to completely delete a table and all its contents from the database?
Flashcards are hidden until you start studying
Study Notes
Aim
- Study DDL (Data Definition Language) and DML (Data Manipulation Language) commands.
DDL (Data Definition Language)
- DDL consists of SQL commands that define and modify the database schema.
- Key function is to create database structures and manage their properties.
Examples of DDL Commands
- CREATE: Establishes databases or database objects like tables, indexes, functions, views, stored procedures, and triggers.
- DROP: Permanently removes objects from the database.
- ALTER: Modifies existing database structures.
- TRUNCATE: Deletes all records from a table and frees up allocated space.
- COMMENT: Adds descriptive comments to the database dictionary.
- RENAME: Changes the name of an existing database object.
DML (Data Manipulation Language)
- DML focuses on manipulating the actual data within the database.
Examples of DML Commands
- SELECT: Retrieves specific data from the database.
- INSERT: Adds new data entries into a specified table.
- UPDATE: Modifies existing data in a table.
- DELETE: Removes records from a database table.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.