Database Interview Material
Database Interview Material
A database is a collection of data that is organized, which is also called structured data.
Databases can contain any type of data, such as numbers, words, images, videos, and files.
Database Languages
Data Definition Language
Data Manipulation Language
Data Control Language
Transactional Control Language
1. Data Definition Language
DDL is the short name for Data Definition Language, which deals with database schemas and
descriptions, of how the data should reside in the database.
SQL statements:
CREATE: to create a database and its objects like (table, index, views, store
procedure, function, and triggers)
ALTER: alters the structure of the existing database
DROP: delete objects from the database
TRUNCATE: remove all records from a table, including all spaces allocated for the
records are removed
COMMENT: add comments to the data dictionary
RENAME: rename an object