0% found this document useful (0 votes)
136 views2 pages

BCA 4th Sem Practical File of DBMS

The document outlines practical assignments for a Database Management System (DBMS) course, covering various topics such as data models, relational databases, normalization, transactions, and indexing. It includes tasks to create databases and tables, insert records, perform queries, and apply constraints. The assignments aim to provide hands-on experience with database design and management concepts.

Uploaded by

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

BCA 4th Sem Practical File of DBMS

The document outlines practical assignments for a Database Management System (DBMS) course, covering various topics such as data models, relational databases, normalization, transactions, and indexing. It includes tasks to create databases and tables, insert records, perform queries, and apply constraints. The assignments aim to provide hands-on experience with database design and management concepts.

Uploaded by

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

BCA 4th Sem

Practical File Of DBMS


Attempt all the questions

1. Compare the hierarchical, network, relational, and object-oriented data models with examples.
2. What is a relational database? Explain key relational concepts like tables, tuples, attributes, and
schemas, primary key, candidate key, foreign key, and composite key.
3. What is an Entity-Relationship (ER) model? Explain its components. Differentiate between strong
entity and weak entity sets with suitable ER diagram symbols.
4. Explain 1NF, 2NF, and 3NF, BCNF, 4NF, 5NF with appropriate examples of normalization.
5. Define a transaction. What are its properties? Explain ACID in detail.
6. What is an index in DBMS? Compare B-tree indexing and hash indexing.
7. Explain the concept of concurrency control. Why is it important in DBMS?

8. Create a database named CollegeDB.


9. Create a database named LibrarySystem.

10. In CollegeDB, create a table Students with the following columns:


a. StudentID (INT, Primary Key)
b. Name (VARCHAR(50))
c. Age (INT)
d. Department (VARCHAR(50))
e. Marks (FLOAT)

11. Create a table Departments in CollegeDB with:


a. DeptID (INT, Primary Key)
b. DeptName (VARCHAR(50))
c. HOD (VARCHAR(50))

12. In LibrarySystem, create a table Books with:


a. BookID (INT, Primary Key)
b. Title (VARCHAR(100))
c. Author (VARCHAR(50))
d. YearPublished (YEAR)
e. AvailableCopies (INT)
13. Create a table Members in LibrarySystem with:
a. MemberID (INT, Primary Key)
b. Name (VARCHAR(50))
c. JoinDate (DATE)
d. MembershipType (VARCHAR(20))

14. Insert 5 records into the Students table.


15. Insert 3 records into the Departments table.
16. Insert 4 books into the Books table.
17. Insert 3 members into the Members table.
18. Display all records from the Students table.
19. Show the names and departments of students having marks greater than 70.
20. List all books published after the year 2010.
21. Retrieve all members who joined after ‘2022-01-01’.
22. Show student names in ascending order of their marks.
23. Find students whose age is between 18 and 22.
24. List books where available copies are less than 5.
25. Get the count of students in each department.
26. Retrieve the maximum and minimum marks from Students.
27. Find the average number of available copies for all books.
28. Display student name along with department name using Students and Departments table.
29. Show the list of all departments even if no students are enrolled (use LEFT JOIN).
30. Update the Marks of a student where StudentID = 101.
31. Change the number of AvailableCopies of a book where BookID = 2.
32. Delete a student from the Students table where Marks < 35.
33. Remove a book from the Books table where YearPublished < 2000.
34. Add a UNIQUE constraint on the Name column of Students.
35. Add a NOT NULL constraint to Author column in Books.
36. Add a foreign key from Students.Department to Departments.DeptName.
37. Count how many members exist in each membership type.
38. Find total books available in the library.
39. Show average marks per department.
40. Get the number of books by each author.

You might also like