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

DBMS Assignment - 1

This document outlines an assignment for a Database Management System (DBMS) course, consisting of various questions related to data, information, DBMS functionalities, data integrity, and database architecture. It includes tasks such as explaining concepts, comparing architectures, and writing SQL and relational algebra queries based on given schemas. The assignment emphasizes understanding and applying DBMS principles rather than copying from peers.

Uploaded by

iff452931
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

DBMS Assignment - 1

This document outlines an assignment for a Database Management System (DBMS) course, consisting of various questions related to data, information, DBMS functionalities, data integrity, and database architecture. It includes tasks such as explaining concepts, comparing architectures, and writing SQL and relational algebra queries based on given schemas. The assignment emphasizes understanding and applying DBMS principles rather than copying from peers.

Uploaded by

iff452931
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

DBMS Assignment – 1

1. What is the difference between data and information? Provide an example.


2. How does a DBMS differ from a traditional file system? Mention advantages and
disadvantages.
3. What is data redundancy? How does DBMS reduce redundancy?
4. Explain the atomicity problem in DBMS with a real-world example.
5. What are concurrent access anomalies? How does DBMS handle them?
6. Why is security important in DBMS? Explain how role-based access control (RBAC)
helps.
7. Explain integrity problems in a file system. How does DBMS help to maintain integrity?
8. What are the main components of a DBMS? Briefly explain each.
9. Compare 1-tier, 2-tier, and 3-tier database architectures with examples.
10. How does OLAP differ from OLTP? Provide a practical example of each.
11. What is data abstraction? Explain the three levels with examples.
12. Explain logical and physical data independence. Why is it important in DBMS?
13. What is an instance and how does it differ from a schema?
14. Given a database schema, how do you create a Schema Diagram? Draw one for the
following schema:

Department (Dept_id, dept_name)


Student (student_id, name, email, phone)
Faculty (faculty_id, name, dept_id)
Course (course_id, course_name, faculty_id)
Enrollment (student_id, course_id, grade)

15. What are integrity constraints? Why are they necessary in DBMS?
16. Explain the differences between NOT NULL, UNIQUE, and CHECK constraints with
examples.
17. What is a primary key? How is it different from a unique key?
18. Define and differentiate between candidate key, super key, and alternate key.
19. What is a composite key? Provide an example.
20. How does a foreign key ensure referential integrity? Give an example with SQL.
21. Consider the following schema and Write the Queries in Both Relational Algebra & SQL:

Student(std_id, name, age, department, cgpa, enrollment_year)


Course(course_id, course_name, department, credit_hours, start_date)

i. Find the names of students whose name starts with the letter 'S'.
ii. Find all distinct student names and departments who are above 22 years old or have
a CGPA greater than 3.80.
iii. Find the names and departments of students who are either in the CSE or EEE
Department and have a CGPA above 3.50.
iv. Find the total number of students in the database.
v. Find the names of courses that have credit hours greater than 3 but are not in the
Business department.
vi. Find the names of students who are enrolled in the same department as a course
with credit hours greater than 4.
22. Consider the following schema and Write the Queries in Both Relational Algebra &
SQL:

Employee(emp_id, name, age, department, salary, joining_date)


Project(proj_id, proj_name, department, budget, start_date)

i. Find the names of employees whose name starts with the letter 'A'.
ii. Find all distinct employee names and departments who are above 35 years old or
have a salary greater than 75,000.
iii. Find the names and departments of employees who are either in the IT or HR
Department and have a salary above 50,000.
iv. Find the total number of employees in the database.
v. Find the names of projects that have a budget greater than 5 million but are not in
the Finance department.
vi. Find the names of employees who work in the same department as a project with
a budget greater than 10 million.

23. Consider the following schema and Write the Queries in Both Relational Algebra &
SQL:

Course_A (as_id, as_name, dept)


Course_B (bs_id, bs_name, dept)

i. Retrieve the list of all unique students who are enrolled in either Course_A or
Course_B.
ii. Rename the attribute as_name to student_name in the Course_A table.
iii. Find students who are enrolled in Course_A but not in Course_B.
iv. Find students who are enrolled in both courses.

N.B. Do not copy-paste from your friends. Go through the PDF and understand the questions
before answering them.

You might also like