What is DBMS?
DBMS (Database Management System) is software used to create, store, manage, and manipulate data efficiently.
What is the main function of DBMS?
It acts as an interface between the user and the database.
Give examples of DBMS software.
MySQL, Oracle, PostgreSQL, MS Access, MongoDB.
List components of DBMS.
Hardware, Software, Data, Users, Procedures.
What is the hardware component of DBMS?
Devices used for storage and data access.
What is the software component of DBMS?
The DBMS program that manages the database.
Who are the users of DBMS?
DBA, Designer, End-user.
What are procedures in DBMS?
Rules and instructions on how to use and manage the database.
List advantages of DBMS.
Reduces redundancy, ensures data integrity, provides security, supports backup and recovery, allows concurrent access, and enables data sharing.
How does DBMS ensure data integrity?
By enforcing constraints and validation rules on data.
What are the types of DBMS?
Hierarchical, Network, Relational, Object-Oriented.
Describe Hierarchical DBMS.
Organizes data in a tree-like structure (e.g., IBM IMS).
Describe Network DBMS.
Uses many-to-many relationships (e.g., IDMS).
Describe Relational DBMS.
Stores data in tables of rows and columns (e.g., MySQL, Oracle).
Describe Object-Oriented DBMS.
Stores data as objects (e.g., db4o).
What is a primary key?
A field that uniquely identifies a record in a table.
What is a foreign key?
A field that refers to the primary key in another table.
What is a candidate key?
All possible attributes that can uniquely identify a record.
What is an alternate key?
A candidate key not chosen as the primary key.
What is a composite key?
A combination of multiple attributes used to uniquely identify a record.
What is a super key?
Any set of attributes that can uniquely identify a record.
What is normalization?
The process of organizing data to reduce redundancy and improve integrity.
Explain 1NF.
Ensures atomic values; removes repeating groups.
Explain 2NF.
Removes partial dependency; ensures each non-key attribute depends on the whole key.