Ufraan's Notes Digital garden & personal knowledge base
Last modified: Jun 28, 2026Home / 08_uni / Semester 4 / Dbms Cie1.Md

uni

The provided answers serve as a guide and should be used for reference. Achieving full marks requires a comprehensive understanding and application of the materia

Short Answer Questions – 2 Marks

1. What is DBMS and its characteristics?


2. Define Database Schema and Instance.


3. What are various DDL statements used in SQL?

DDL (Data Definition Language) statements are used to define and modify the structure of a database. The common DDL statements are:


4. Identify various database users.

  1. Database Administrator (DBA):
    • Manages the database and ensures its proper functioning.
    • Handles user access, backups, recovery, and performance tuning.
  2. End Users:
    • Use the database to perform day-to-day tasks like inserting and querying data.
    • Includes casual users (use applications) and sophisticated users (write direct queries).
  3. Application Programmers:
    • Write programs that interact with the database using SQL.
    • Design user-friendly interfaces to access data.
  4. System Analysts:
    • Define business requirements and ensure the database structure meets business goals.
    • Collaborate with programmers and the DBA to ensure the system meets user needs.
  5. Data Scientists:
    • Analyze large volumes of data to extract insights and patterns.
    • Use analytical tools and write complex queries to manipulate and interpret data.

5. Define 1NF and 2NF.


6. Explain TRC with an example.


7. Define Selection and Projection.


8. Explain the use of Set Difference and Intersection Operation.


9. Write short notes on Domain Relational Calculus.


10. Define 1NF and 2NF.


11. Explain BCNF.


12. Define Armstrong Axioms.

Armstrong Axioms are a set of rules used to derive functional dependencies in a relation. These rules help in normalizing the database and finding closure of attributes.

  1. Reflexivity:

    If Y is a subset of X, then X → Y.

    • Example: {Student_ID, Name} → Name is valid because Name is part of the left side. 2. Augmentation:

    If X → Y, then XZ → YZ (adding more attributes does not change the dependency).

    • Example: If Student_ID → Name, then Student_ID, Age → Name, Age is also valid. 3. Transitivity:

    If X → Y and Y → Z, then X → Z.

    • Example: If Student_ID → Department and Department → Head, then Student_ID → Head. 4. Union:

    If X → Y and X → Z, then X → YZ.

    • Example: If Student_ID → Name and Student_ID → Age, then Student_ID → {Name, Age}. 5. Decomposition:

    If X → YZ, then X → Y and X → Z.

    • Example: If Student_ID → {Name, Age}, then Student_ID → Name and Student_ID → Age. 6. Pseudotransitivity:

    If X → Y and WY → Z, then WX → Z.

    • Example: If Student_ID → Department and Department, College → Head, then Student_ID, College → Head.

Long Answer Questions – 2 Marks

1. List out various Database users with their roles.

Database users can be categorized based on their interaction and responsibilities within a database system:


2. List and explain different data models.

Data models represent how data is organized and related within a database. Key models include:


3. Explain the components of Database Architecture.

A typical database architecture consists of:

4. List various relational algebra operations with one example each.

Relational algebra operations manipulate relations (tables).


5. Explain select, project and Cartesian product operations in relational algebra with an example?


6. List various relational algebra operations with one example each.

(This is a repeat of question 4, so the answer is the same)


7. Explain select, project and Cartesian product operations in relational algebra with an example?

(This is a repeat of question 5, so the answer is the same)


8. Write an overview of NoSQL.

NoSQL (Not Only SQL) databases are designed to handle large volumes of unstructured, semi-structured, and structured data. They offer flexibility, scalability, and high performance. Key characteristics include:


9. What are set operators? Explain various set operations that can be performed using a query.

Set operators combine the results of two or more SELECT queries. They include:


10. Define 1NF and 2NF.


11. Explain select, project and Cartesian product operations in relational algebra with an example?

(This is a repeat of question 5, so the answer is the same)


12. Explain the advantages of UNION operation with example?

The UNION operation in SQL combines the result sets of two or more SELECT statements and removes duplicate rows.

13. Write about four types of NoSQL Databases with example.

NoSQL databases are designed to handle various data types and large volumes of data. Here are four main types:


14. Differentiate SQL with NoSQL

Here’s a table summarizing the key differences between SQL and NoSQL databases:

Feature SQL Databases NoSQL Databases
Data Model Relational (tables with rows and columns) Various (key-value, document, column-family, graph)
Schema Fixed, predefined schema Dynamic, flexible schema
Query Language SQL Varies (often not SQL)
Scalability Vertical (scaling up) Horizontal (scaling out)
Consistency ACID (Atomicity, Consistency, Isolation, Durability) BASE (Basically Available, Soft state, Eventually consistent)
Use Cases Structured data, complex transactions Unstructured/semi-structured data, high throughput, scalability
Examples MySQL, PostgreSQL, Oracle, SQL Server MongoDB, Redis, Cassandra, Neo4j

15. Explain pitfalls of RDBD.

RDBD stands for Relational Database. While Relational Databases are very useful, they also have some pitfalls: