Database Management Systems (DBMS) Flashcards
DBMS
computer software that allows users to interact with databases (e.g. MySQL)
Components of DBMS and SQL:
Application programs communicate with a relational DBMS using Structured Query Language (SQL) which is a special programming language designed to perform DBMS tasks. Application programs send data retrieval, data insert, or data changes requests to DBMS as SQL statements.
SQL statements: DDL, DML, DCL, TCL
Data Definition Language (DDL): statements used for defining, organizing, and changing data structure in DBMS.
CREATE to define database objects, DROP to delete them, ALTER to modify them
Output of DDL statements is metadata (defines meaning and format of data stored in physical storage medium (hard drive))
Data Manipulation Language (DML):
statements used for selecting, inserting, deleting, and updating data in a database
Data Control Language (DCL):
statements used for controlling the access to the data
Transaction Control Language (TCL):
statements used to manage the changes made by DML statements. They group DML statements together into logical transitions
A database is a collection of programs that stores, manages, and uses data
False
True
False
A DBMS can host multiple databases
True
False
True
The REVOKE statement is used to remove user access rights or privileges to the database objects. REVOKE is an example of:
DCL
The SQL ROLLBACK statement rolls back the current translation, canceling its changes. SQL ROLLBACK is an example of:
TCL
A typical DBMS has many functions such as:
Creating databases
Data storage
Documenting the data organization
Defining data integrity and data validation rules
Creating user accounts
Providing access to databases
Data security and database administration
Database backup and recovery option