0% found this document useful (0 votes)
4 views

DBMS 2 Marks

The document provides a comprehensive overview of key concepts related to databases and Database Management Systems (DBMS), including definitions of databases, data redundancy, and the importance of DBMS. It covers various topics such as data independence, keys, transactions, normalization, SQL operations, and the role of a Database Administrator (DBA). Additionally, it explains essential SQL commands and concepts like indexing, triggers, views, and data integrity constraints.

Uploaded by

youweus62
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

DBMS 2 Marks

The document provides a comprehensive overview of key concepts related to databases and Database Management Systems (DBMS), including definitions of databases, data redundancy, and the importance of DBMS. It covers various topics such as data independence, keys, transactions, normalization, SQL operations, and the role of a Database Administrator (DBA). Additionally, it explains essential SQL commands and concepts like indexing, triggers, views, and data integrity constraints.

Uploaded by

youweus62
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

1. What is a database in the context of DBMS?

A database is a structured collection of data organized and stored for efficient retrieval and
manipulation.

2. Define data redundancy.


Data redundancy is the storage of the same data in multiple places within a database, which can
lead to inconsistencies and inefficiency.

3. What is a DBMS, and why is it important?


A Database Management System (DBMS) is software that manages databases. It's important
because it ensures data integrity, security, and efficient data access.

4. Explain the concept of data independence in DBMS.


Data independence is the separation of the logical and physical aspects of data. It allows
changes in physical storage to be hidden from users and applications.

5. Differentiate between a primary key and a foreign key.


A primary key is a unique identifier for a table, while a foreign key establishes a link between
two tables by referencing the primary key of another table.

6. What is a transaction in DBMS?


A transaction is a sequence of one or more SQL statements treated as a single unit, ensuring that
all the statements are executed successfully or not at all.

7. Explain the concept of ACID properties in transactions.


ACID stands for Atomicity, Consistency, Isolation, and Durability. It ensures that database
transactions are reliable and maintain data integrity.

8. What is normalization, and why is it important in database design?


Normalization is the process of organizing data in a database to reduce redundancy and
improve data integrity. It's essential for efficient data management.
9. What is a join in SQL, and what types of joins are commonly used?
A join combines rows from two or more tables based on a related column. Common join types
include INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN.

10. Explain the concept of indexing in DBMS.


Indexing is the creation of data structures to improve data retrieval speed and efficiency by
allowing fast lookup of data based on specific columns.

11. What is a trigger in DBMS?


A trigger is a set of actions executed automatically when specific database events (e.g., INSERT,
UPDATE, DELETE) occur.

12. What is a view in DBMS?


A view is a virtual table that is based on the result of an SQL query. It can be used to simplify
complex queries or restrict access to certain data.

13. Explain the concept of concurrency control in DBMS.


Concurrency control ensures that multiple users or processes can access and modify data
simultaneously while maintaining data consistency.

14. What is the difference between a clustered index and a non-clustered index?
A clustered index determines the physical order of data in a table, while a non-clustered index
is a separate data structure that provides a logical order for data retrieval.

15. What is a DBA, and what are their primary responsibilities?


A Database Administrator (DBA) is responsible for managing, configuring, and maintaining a
database system, including security, performance tuning, and backups.

16. Explain the concept of data warehousing.


Data warehousing involves the collection, storage, and management of data from various
sources for business intelligence and reporting purposes.
17. Differentiate between OLTP and OLAP databases.
OLTP (Online Transaction Processing) databases handle day-to-day transactions, while OLAP
(Online Analytical Processing) databases support complex queries and reporting.

18. What is a stored procedure in DBMS?


A stored procedure is a set of precompiled SQL statements that can be executed with a single
command. It can accept parameters and return results.

19. Explain the concept of data modeling in DBMS.


Data modeling involves creating an abstract representation of the data structure and its
relationships within a database.

20. Define data dictionary in DBMS.


A data dictionary is a repository of metadata that provides information about the structure,
organization, and usage of data in a database.

21. What is a query in the context of a database?


A query is a request for data or information from a database.

22. Differentiate between DML and DDL.


DML (Data Manipulation Language) is used for manipulating data (e.g., INSERT, UPDATE,
DELETE), while DDL (Data Definition Language) is used for defining database structure (e.g.,
CREATE TABLE, ALTER TABLE).

23. Explain the purpose of the SELECT statement in SQL.


The SELECT statement is used to retrieve data from one or more tables in a database.

24. What is a SQL result set?


A result set is the set of rows returned by a SQL query.

25. Define a SQL WHERE clause.


The WHERE clause is used to filter rows returned by a query based on specified conditions.
26. Explain the difference between SQL DISTINCT and SQL GROUP BY.
SQL DISTINCT removes duplicate rows from the result set, while SQL GROUP BY groups rows
based on specified columns and applies aggregate functions.

27. What is an SQL JOIN, and why is it used?


An SQL JOIN combines rows from two or more tables based on related columns to retrieve data
from multiple tables simultaneously.

28. Differentiate between an INNER JOIN and an OUTER JOIN.


An INNER JOIN returns only matching rows from both tables, while an OUTER JOIN returns
matching rows and non-matching rows from one or both tables.

29. What is an SQL subquery?


An SQL subquery is a query embedded within another query. It's used for complex filtering and
retrieval.

30. Explain the purpose of the SQL ORDER BY clause.


The ORDER BY clause is used to sort the result set based on specified columns and order
(ascending or descending).

31. Define SQL aggregate functions.


SQL aggregate functions (e.g., SUM, AVG, COUNT) perform calculations on sets of values and
return a single result.

32. What is the primary purpose of the SQL GROUP BY clause?


The GROUP BY clause is used to group rows in the result set by specified columns and apply
aggregate functions to each group.

33. Explain the concept of SQL views.


SQL views are virtual tables based on the result of a query. They provide a simplified and secure
way to access data.
34. What is the SQL UNION operator, and when is it used?
The UNION operator combines the result sets of two or more SELECT statements into a single
result set. It's used when data from multiple tables needs to be combined.

35. Define a stored procedure in the context of a database.


A stored procedure is a set of precompiled SQL statements that can be executed with a single
command. It can accept parameters and return results.

36. What is the purpose of the SQL TRUNCATE statement?


The SQL TRUNCATE statement is used to remove all rows from a table quickly. It's faster and
uses fewer system resources than the DELETE statement.

37. Explain the concept of database normalization.


Database normalization is the process of organizing data in a database to reduce redundancy
and improve data integrity.

38. What is an SQL transaction, and why is it essential?


An SQL transaction is a sequence of one or more SQL statements treated as a single unit. It's
essential for ensuring data integrity and consistency.

39. What is a SQL constraint, and why are constraints used in databases?
A SQL constraint is a rule that enforces data integrity. Constraints are used to define limits and
ensure data accuracy.

40. Define SQL triggers.


SQL triggers are sets of actions executed automatically when specific database events (e.g.,
INSERT, UPDATE, DELETE) occur.

41. What is the SQL CASE statement, and how is it used?


The SQL CASE statement is used to perform conditional logic within an SQL query. It's similar to
an IF-THEN-ELSE statement in other programming languages.
42. What is the purpose of SQL cursors?
SQL cursors are used to retrieve and manipulate data in a row-by-row fashion, typically within
stored procedures.

43. Explain the concept of SQL indexes.


SQL indexes are data structures used to improve data retrieval speed by allowing fast lookup of
data based on specific columns.

44. Define SQL triggers and provide an example of their usage.


SQL triggers are sets of actions executed automatically when specific database events occur. For
example, you can create a trigger to log changes made to a table.

45. What is the SQL HAVING clause, and when is it used?


The SQL HAVING clause is used with the GROUP BY clause to filter groups based on specified
conditions. It's applied to aggregated results.

46. Explain the concept of SQL data types.


SQL data types define the type of data a column can hold, such as INTEGER, VARCHAR, or DATE.

47. What is the difference between a SQL stored procedure and a SQL function?
A stored procedure is a set of SQL statements that can perform various actions, while a function
returns a single value.

48. Define SQL foreign keys and explain their importance.


SQL foreign keys establish relationships between tables by referencing a primary key in
another table. They maintain data integrity and enforce referential integrity.

49. What is the SQL CHECK constraint, and how is it used?


The SQL CHECK constraint is used to define a condition that values in a column must meet. It
ensures data accuracy.
50. What is the role of a Database Administrator (DBA) in database management?
A DBA is responsible for managing, configuring, and maintaining a database system, including
security, performance tuning, and backups.

51. Explain the concept of data modeling in DBMS.


Data modeling involves creating an abstract representation of data structures and their
relationships within a database.

52. What are SQL system views, and how are they used in database management?
SQL system views provide information about database objects and metadata. They are used to
retrieve information about the database schema.

53. What is the purpose of SQL transactions, and how do they ensure data consistency?
SQL transactions ensure data consistency by treating a sequence of statements as a single unit
that either executes successfully or not at all.

54. Differentiate between a clustered index and a non-clustered index in SQL.


A clustered index determines the physical order of data in a table, while a non-clustered index
is a separate data structure that provides a logical order for data retrieval.

55. What is the SQL concept of data warehousing, and why is it important?
Data warehousing involves the collection, storage, and management of data from various
sources for business intelligence and reporting purposes.

56. Explain the purpose of SQL primary keys and their role in ensuring data integrity.
SQL primary keys are unique identifiers for tables and ensure data integrity by preventing
duplicate rows.

57. Define SQL secondary keys and describe their significance.


SQL secondary keys are non-unique indexes that provide faster data access and are used for
queries that don't require unique values.
58. What is a SQL database schema, and why is it used?
A SQL database schema is a logical container for organizing database objects. It's used to group
related tables and objects for better management.

59. Explain the concept of SQL views and their benefits.


SQL views are virtual tables based on the result of a query. They provide a simplified way to
access and secure data.

60. What is the SQL concept of data integrity constraints, and why are they essential?
SQL data integrity constraints (e.g., NOT NULL, UNIQUE, CHECK) ensure the accuracy,
reliability, and consistency of data in a database.

61. Define SQL triggers and describe situations where they are used.
SQL triggers are sets of actions executed automatically when specific database events (e.g.,
INSERT, UPDATE, DELETE) occur. They are used to maintain data integrity and log changes.

62. What is SQL data mining, and how is it used for discovering patterns in data?
SQL data mining is the process of discovering patterns, trends, and knowledge in large
databases using various data mining techniques.

63. Explain the SQL concept of referential integrity, and how is it enforced?
Referential integrity ensures that relationships between tables are maintained and that foreign
keys correspond to primary keys. It's enforced using constraints and triggers.

64. Differentiate between SQL INNER JOIN and SQL OUTER JOIN, and provide examples of
their usage.
SQL INNER JOIN returns only matching rows from both tables, while SQL OUTER JOIN returns
matching and non-matching rows. For example, you can use INNER JOIN to retrieve orders with
associated customers and LEFT JOIN to get customers with or without orders.

65. What are SQL stored procedures, and why are they used in database management?
SQL stored procedures are precompiled sets of SQL statements. They are used to encapsulate
logic for data manipulation and ensure consistent and secure execution.
66. Explain the concept of database triggers in SQL and provide examples of their use cases.
Database triggers are sets of actions that automatically execute when specific database events
occur. For example, you can create a trigger to log changes made to a table or enforce business
rules.

67. What is the SQL concept of indexing, and why is it important in database management?
SQL indexing involves creating data structures to improve data retrieval speed. It's important
for faster query execution and efficient data access.

68. Differentiate between a SQL function and a SQL stored procedure.


A SQL function returns a single value, while a stored procedure can perform various actions and
return multiple result sets.

69. Explain the SQL concept of referential integrity and its role in maintaining database
relationships.
Referential integrity ensures that relationships between tables are maintained, and foreign keys
correspond to primary keys. It's enforced using constraints to prevent actions that would
compromise data integrity.

70. What is the role of the Database Administrator (DBA) in database management, and what
are their responsibilities?
A DBA is responsible for managing, configuring, and maintaining the database system.
Responsibilities include database design, security, performance tuning, and backup and
recovery.

71. What is a database management system (DBMS), and why is it important in the field of
computer science?
A DBMS is a software system that enables the creation, storage, retrieval, and management of
data in databases. It's essential for data organization and efficient data access.

72. Differentiate between data and information.


Data refers to raw facts and figures, while information is data that is processed, organized, and
meaningful.
73. What is a database schema, and how does it differ from a database instance?
A database schema defines the structure of a database, including tables, columns, and
relationships. A database instance is a specific snapshot of the database at a given moment.

74. Define database normalization and explain its importance in database design.
Database normalization is the process of organizing data to minimize redundancy and improve
data integrity. It ensures that data is stored efficiently and prevents data anomalies.

75. Explain the purpose of SQL (Structured Query Language) in DBMS.


SQL is a domain-specific language used to interact with relational databases. It's used for tasks
like querying, inserting, updating, and deleting data.

76. What is the primary key in a relational database, and why is it important?
The primary key is a unique identifier for each record in a table. It's crucial for data integrity, as
it enforces data uniqueness and ensures data consistency.

77. What are database constraints, and how do they help maintain data integrity?
Database constraints are rules that restrict the values that can be entered into a database. They
help enforce data integrity by preventing invalid or inconsistent data.

78. Explain the differences between SQL DML (Data Manipulation Language) and SQL DDL
(Data Definition Language).
SQL DML is used for manipulating data (e.g., SELECT, INSERT, UPDATE, DELETE), while SQL DDL
is used for defining database structure (e.g., CREATE, ALTER, DROP).

79. What is the purpose of the SQL SELECT statement, and how is it used to retrieve data from
a database?
The SQL SELECT statement is used to query and retrieve data from one or more tables in a
database. It allows you to specify the columns you want to retrieve, conditions for filtering, and
sorting.
80. Explain the concept of SQL indexes and their significance in query optimization.
SQL indexes are data structures that improve data retrieval speed. They reduce the time
required to search for specific data and enhance query performance.

81. Differentiate between SQL views and tables.


A table is a database object that stores data, while a view is a virtual table based on the result of
a query. Views do not store data themselves but provide a dynamic way to access it.

82. What is the purpose of the SQL WHERE clause, and how is it used in SELECT statements?
The SQL WHERE clause is used to filter rows from a table based on a specified condition. It is
used with SELECT statements to retrieve data that meets specific criteria.

83. Explain the ACID properties in the context of database transactions.


ACID stands for Atomicity, Consistency, Isolation, and Durability. These properties ensure the
reliability and integrity of database transactions.

84. What is database normalization, and how is it achieved through different normal forms?
Database normalization is the process of organizing data to minimize redundancy and improve
data integrity. It is achieved by applying a series of normal forms (e.g., 1NF, 2NF, 3NF).

85. What is the purpose of SQL JOIN operations, and how do INNER JOIN and LEFT JOIN
differ?
SQL JOIN operations combine data from two or more tables based on a related column. INNER
JOIN returns only matching rows, while LEFT JOIN returns matching and non-matching rows.

86. Explain the concept of referential integrity in a relational database.


Referential integrity ensures that relationships between tables are maintained, and foreign keys
correspond to primary keys. It prevents data inconsistencies.

87. What are the different types of SQL constraints, and how are they used in database
design?
SQL constraints include NOT NULL, UNIQUE, PRIMARY KEY, FOREIGN KEY, CHECK, and
DEFAULT. They enforce data rules and integrity in a database.

88. Define SQL triggers and provide examples of situations where they are used.
SQL triggers are sets of actions that automatically execute when specific database events occur
(e.g., INSERT, UPDATE, DELETE). They are used to maintain data integrity or log changes.

89. What is SQL data warehousing, and how does it support business intelligence (BI) and
analytics?
SQL data warehousing involves collecting, storing, and managing data from various sources for
BI and analytical purposes. It provides a central repository for analyzing data.

90. Explain the purpose of SQL views and provide examples of their practical use.
SQL views are virtual tables created from one or more base tables. They are used to simplify
complex queries, control access to data, and provide data security.

91. Differentiate between OLTP (Online Transaction Processing) and OLAP (Online Analytical
Processing) databases.
OLTP databases are used for routine transactional operations, while OLAP databases are
designed for complex analytical queries and reporting.

92. What is the role of a Database Administrator (DBA) in database management, and what
are their core responsibilities?
A DBA is responsible for the design, security, performance, and maintenance of a database
system. Responsibilities include backup and recovery, user access management, and query
optimization.

93. Explain the importance of query optimization in a relational database and provide
examples of optimization techniques.
Query optimization aims to improve the efficiency of SQL queries. Techniques include indexing,
choosing the right JOIN type, and using the WHERE clause effectively.

94. What is the purpose of SQL transactions, and how do they ensure data consistency in a
database?
SQL transactions group multiple database operations into a single unit. They ensure data
consistency by allowing changes to be either fully applied or fully rolled back.

95. Define the terms "data warehouse" and "data mart," and explain their differences.
A data warehouse is a centralized repository for storing large volumes of data, while a data
mart is a subset of a data warehouse tailored for specific user groups or departments.

96. Explain the concept of "big data" and discuss the challenges and opportunities associated
with managing and analyzing big data.
Big data refers to large and complex datasets. Challenges include data storage and processing,
while opportunities involve deriving insights from vast amounts of information.

97. Describe the benefits and use cases of NoSQL databases compared to traditional
relational databases.
NoSQL databases provide flexibility and scalability, making them suitable for applications with
unstructured or rapidly changing data, such as social media and IoT.

98. What is the purpose of SQL stored procedures, and how do they differ from SQL
functions?
SQL stored procedures are sets of SQL statements that can be executed on demand. Unlike
functions, they may not return values and can perform various actions.

99. Explain the advantages of using an E-R diagram (Entity-Relationship diagram) in the
database design process.
E-R diagrams help visualize data models, relationships, and entities. They aid in database
design by providing a clear representation of data structures.

100. Discuss the concept of data replication in a database and its role in ensuring data
availability and fault tolerance.
Data replication involves copying data to multiple locations. It ensures data availability and
provides fault tolerance in case of server failures or data loss.

You might also like