Resources | Subject Notes | Computer Science
A Database Management System (DBMS) provides a software environment for creating, managing, and accessing databases. It encompasses various software tools that facilitate different aspects of database operations. This section explores the key software tools commonly found within a DBMS and their practical applications.
DDL is a subset of SQL used to define and manipulate the structure of a database. It's used to create, alter, and delete database objects like tables, indexes, and views.
CREATE TABLE
).ALTER TABLE
).DROP TABLE
).DDL Command | Purpose | Example |
---|---|---|
CREATE TABLE | Creates a new table in the database. | CREATE TABLE Students (StudentID INT, Name VARCHAR(255), Major VARCHAR(100)); |
ALTER TABLE | Modifies the structure of an existing table. | ALTER TABLE Students ADD COLUMN Email VARCHAR(255); |
DROP TABLE | Deletes a table from the database. | DROP TABLE Students; |
DML is used to manipulate the data stored within the database. It allows you to insert, update, delete, and retrieve data.
SQL is the standard language for interacting with relational databases. It's a powerful tool for querying, manipulating, and managing data. DML commands are a subset of SQL.
Example SQL query to retrieve all students from the Students
table:
SELECT * FROM Students;
A data dictionary is a central repository of information about the database. It contains metadata, which is "data about data." This includes information about tables, columns, data types, constraints, and relationships between tables.
The data dictionary is crucial for database design, documentation, and maintenance.
These tools are used by database administrators (DBAs) to manage the overall database system. They provide functionalities for tasks such as:
These tools allow users to generate reports from the data stored in the database. They often provide features for data analysis, visualization, and presentation.
Examples include tools that can connect directly to a database and generate formatted reports based on predefined templates or ad-hoc queries.
These tools facilitate the transfer of data between different formats and systems. They are essential for tasks such as:
These tools often provide options for data transformation and validation during the import/export process.