22cs3074 Dbms Assign1
22cs3074 Dbms Assign1
Ans1. A database is a structured collection of data, like a digital filing system, where
information is organized and stored. This information can include things like names,
addresses, or various types of records. Now, a Database Management System (DBMS)
is a software application that allows us to manage, organize, and interact with the data
stored in a database. In essence, the database is the actual repository of information,
while the DBMS is the tool that enables us to efficiently handle, retrieve, and manipulate
that data
Q2. Write down the differences between database management system and file
management system with proper examples.
Ans2. A File Management System is like organizing information in separate files and
folders. Each file might contain specific data, and it's up to the applications using it to
manage how that data is stored and retrieved. For example, think of a simple setup
where student information is scattered across different text files—one for names,
another for grades, and so on. When you need to find details about a particular student,
you might have to search through each file individually.
Q3. Explain the role of data model in DBMS and explain its all types.
Structural Definition: Defines the structure of the database, specifying the types of data
that can be stored and the relationships between them.
Data Integrity: Enforces rules to maintain the accuracy and consistency of data,
preventing errors and ensuring the reliability of information stored in the database.
Abstraction: Provides a conceptual framework that simplifies the complex reality of data
storage, making it easier for developers to design and manage databases.
Ans4. Entity:
An entity is like a real-world thing or idea that we can point to and recognize, and we
can keep information about it in a database. For instance, in a university database,
entities might be "Students," "Courses," or "Professors."
Entity Type:
An entity type is like a group of similar things or ideas that have common features. It's a
way to categorize entities with shared characteristics and behaviors. For example, the
entity type "Student" includes all students in the database, each having details like
student ID, name, and address.
Entity Set:
An entity set is like a bunch of all the specific things in a certain category at a given
time. It's like a snapshot of all the instances of a particular type of thing in the database
at that moment. So, the entity set "Student Set" would be all the individual student
things currently in the database.
Q5. Draw the ER diagram for the following task:
A department controls a number of projects, each of which has a unique
name, a unique number, and a single location.
Q6. Draw the ER diagram for the following description;
We store each employee’s name (first, last, MI), Social Security number
(SSN), street address, salary, sex (gender), and birth date. An employee is
assigned to one department, but may work on several projects, which are not
necessarily controlled by the same department. We keep track of the current
number of hours per week that an employee works on each project. We also
keep track of the direct supervisor of each employee (who is another
employee).