Ism File
Ism File
On
DATABASE MANAGEMENT SYSTEM
Submitted
SUBMITTED TO:-
MS. AARTI BUDHIRAJA
(ASSISTANT PROFESSOR) SUBMITTED BY:
STUDENT NAME- John Joseph
ROLL NUMBER: - 35150601722
1
John Joseph
35150601722
SEMESTER-5TH
ACKNOWLEDGEMENT
John Joseph
35150601722
2
John Joseph
35150601722
SEMESTER-5TH
CERTIFICATE
I, Mr. John Joseph , Roll No. 35150601722 certify that the INFORMATION SYSTEM
MANAGEMENT (Paper Code: BBA 307 entitled“ PROJECT REPORT ON INTRODUCTION TO
DBMS” is done by me The matter embodied in this has not been submitted earlier for the
award of any degree or diploma to the best of my knowledge and belief.
Certified that the INFORMATION SYSTEM MANAGEMENT(Paper Code: BBA 307 entitled
PROJECT REPORT ON INTRODUCTION TO DBMS” done by Mr. John Joseph , Roll No
35150601722, is completed under my guidance.
3
John Joseph
35150601722
SEMESTER-5TH
LIST OF TABLES
S.NO. CONTENT S.NO.
1 COVER PAGE 1
2 ACKNOWLEDGEMENT 2
3 CERTIFICATE 3
4 LIST OF TABLES 4
4
John Joseph
35150601722
SEMESTER-5TH
Q1.Explain Information System Management.
6
John Joseph
35150601722
SEMESTER-5TH
3. Scalability and Flexibility: ISM systems should be scalable to
handle growth and adaptable to accommodate new
technologies or changing business requirements. This allows
organizations to stay competitive and keep up with technological
advancements.
7
John Joseph
35150601722
SEMESTER-5TH
HIPAA) is essential, ensuring the organization avoids legal
penalties and maintains stakeholder trust.
9. Collaboration and Communication: ISM facilitates
collaboration across departments by providing integrated
systems that allow for seamless data sharing and
communication, thereby improving team efficiency and
coherence.
8
John Joseph
35150601722
SEMESTER-5TH
o Infrastructure Management Team: Responsible for
maintaining the organization’s hardware, network, servers,
and data centres. This team ensures stable connectivity,
system performance, and hardware availability.
o System Administrators: Manage and configure servers,
storage, and cloud environments, ensuring optimal
performance and access for employees.
o Network Engineers: Focus on network connectivity,
managing local and wide-area networks, VPNs, and
internet access, ensuring secure and continuous
connectivity.
9
John Joseph
35150601722
SEMESTER-5TH
o Quality Assurance (QA) Specialists: Test and validate new
software or updates to ensure they function as intended,
meet quality standards, and avoid system disruptions.
10
John Joseph
35150601722
SEMESTER-5TH
Q2. Introduction of DBMS.
11
John Joseph
35150601722
SEMESTER-5TH
5. Data Integrity and Consistency: DBMS enforces integrity rules
to maintain the accuracy and consistency of data. This is
achieved through constraints and transaction management,
ensuring that data remains reliable across various operations.
Types of DBMS:
12
John Joseph
35150601722
SEMESTER-5TH
• Efficient Data Handling: Allows fast and easy access, storage,
and retrieval of data.
Components of DBMS:
1. Database Engine
• The database engine is the core component of a DBMS,
responsible for handling data storage, retrieval, and processing.
It manages read and write operations, performs queries, and
ensures data integrity and transaction management.
• Functions: Executes SQL queries, manages transactions, and
performs data storage and retrieval operations.
2. Database Schema
13
John Joseph
35150601722
SEMESTER-5TH
• The schema defines the logical structure of the database,
including tables, columns, data types, relationships, and
constraints. It acts as a blueprint for how data is organized in the
database.
• Functions: Provides a structured framework for data and defines
the organization of tables and relationships.
3. Query Processor
• The query processor interprets and executes database queries,
transforming user queries (usually written in SQL) into
commands that the DBMS can understand and execute. It
includes both the query optimizer and query compiler.
• Functions: Parses, validates, optimizes, and executes queries
to retrieve or manipulate data efficiently.
4. Database Manager
• The database manager handles all interactions between the data
stored in the database and the user. It is responsible for
managing data integrity, security, and concurrency.
• Functions: Manages data authorization, ensures integrity
constraints, and controls access to the database.
5. Transaction Management
• Transaction management ensures that all database
transactions are processed reliably and adhere to the ACID
properties (Atomicity, Consistency, Isolation, Durability). This
component ensures that transactions are executed fully or not at
all, avoiding partial updates.
• Functions: Ensures data consistency and handles operations
such as commit, rollback, and transaction logs.
6. Storage Manager
• The storage manager oversees data storage on physical media,
managing how data is stored, indexed, and accessed on disk. It
14
John Joseph
35150601722
SEMESTER-5TH
also controls the data buffer, caching frequently accessed data
in memory for faster access.
• Functions: Manages data storage, indexing, and retrieval from
disk storage.
16
John Joseph
35150601722
SEMESTER-5TH
Q3. Explain the concept of:
6. Joins: Joins are used to combine data from multiple tables based
on related columns. For example, an INNER JOIN returns rows
when there is a match in both tables, while a LEFT JOIN returns
all rows from one table, even if there's no match in the other.
1. CREATE:
o Used to create new database objects like tables, indexes,
views, or entire databases.
o Defines the structure of the table (columns, data types,
constraints).
ALTER:
o Modifies the structure of existing database objects.
o Allows you to add, modify, or delete columns, and add
constraints to a table.
18
John Joseph
35150601722
SEMESTER-5TH
2. DROP:
• Deletes entire database objects, such as tables, indexes, or
views.
• Note: The data and structure are completely removed, so it’s a
permanent action.
1. SELECT:
o Retrieves data from one or more tables based on specific
criteria.
o This is the most commonly used DML command, enabling
users to fetch and filter data for analysis or display.
2. INSERT:
• Adds new records (rows) to a table.
• Can insert data into specific columns or all columns in a table.
3. UPDATE:
• Modifies existing records in a table.
• Typically uses a WHERE clause to specify which records should
be updated; without it, all records in the table would be updated.
4. DELETE:
• Removes records from a table.
• Like UPDATE, it often uses a WHERE clause to specify which
records to delete; if omitted, all records will be deleted from the
table.
19
John Joseph
35150601722
SEMESTER-5TH
4. AGGREGATE FUNCTIONS- Aggregate functions are a key
feature of SQL that allow users to perform calculations on
multiple rows of data, returning a single summarized result.
These functions are commonly used with the GROUP BY
clause to organize data into groups and apply calculations
within each group, making them essential for generating
reports and performing analytics.
Main Aggregate Functions:
1. COUNT:
o Returns the number of rows that match a specific condition
or, if no condition is provided, counts all rows.
o Commonly used to count records or instances of non-NULL
values.
2. SUM:
• Adds up the values in a specified numeric column across all
rows.
• Useful for finding totals, such as total sales, revenue, or other
cumulative metrics.
3. AVG (Average):
• Calculates the average (mean) value of a numeric column.
• Often used to find the average score, price, or quantity.
4. MAX (Maximum):
• Returns the highest value in a specified column.
• Often used to find the maximum salary, price, or date in a
dataset.
5. MIN (Minimum):
• Returns the lowest value in a specified column.
• Used to find the minimum salary, price, or date in a dataset.
20
John Joseph
35150601722
SEMESTER-5TH
Q4) Write the queries for the following commands and also show
the output
OUTPUT
21
John Joseph
35150601722
SEMESTER-5TH
INPUT – INSERT INTO
OUTPUT
22
John Joseph
35150601722
SEMESTER-5TH
INPUT – ALTER
OUTPUT
INPUT – UPDATE
OUTPUT
23
John Joseph
35150601722
SEMESTER-5TH
INPUTANDOUTPUT- SELECT
INPUT – COUNT
OUTPUT
INPUT-SUM
24
John Joseph
35150601722
SEMESTER-5TH
OUTPUT
INPUT- AVG
OUTPUT
INPUT- MIN
OUTPUT
25
John Joseph
35150601722
SEMESTER-5TH
INPUT- MAX
OUTPUT
26
ARSHI AGGARWAL
36150601722
SEMESTER-5TH
Q5) create a database management(Step by step) system on
library management using MS ACCESS.
• Loans: Loan ID, Member ID, Book ID, Loan Date, Return Date
Members Table:
27
ARSHI AGGARWAL
36150601722
SEMESTER-5TH
- MemberID (AutoNumber, Primary Key)
Loans Table:
- LoanDate (Date/Time)
- ReturnDate (Date/Time)
Save each table with an appropriate name (e.g., Books, Members, Loans).
Create relationships:
- Drag MemberID from the Members table to MemberID in the Loans table to
establish a one-to-many relationship.
- Drag BookID from the Books table to BookID in the Loans table to establish
another one-to-many relationship.
- Repeat the process using the Members table and save it as MemberForm.
- Use the Loans table, but also include combo boxes for selecting MemberID and
BookID to make data entry easier.
- Drag fields to the grid to show relevant information (e.g., Member Name, Book
Title, Loan Date).
- Repeat the process using the CurrentLoans query to show loan details.
Check that relationships work by trying to create loans for existing members and
books.
Run queries and reports to ensure they display the expected results.
Conclusion
This basic library system in MS Access can be expanded with additional features
like user authentication, overdue notifications, and advanced reporting. As you
become more comfortable with Access, consider exploring macros and VBA for
automation to enhance your library system further.
30
ARSHI AGGARWAL
36150601722
SEMESTER-5TH
Q6) create a database management system on library management using MS
ACCESS.
31
ARSHI AGGARWAL
36150601722
SEMESTER-5TH
32
ARSHI AGGARWAL
36150601722
SEMESTER-5TH
33
ARSHI AGGARWAL
36150601722
SEMESTER-5TH
34
ARSHI AGGARWAL
36150601722
SEMESTER-5TH
35
ARSHI AGGARWAL
36150601722
SEMESTER-5TH
Q7) what is ER diagram ?
1. Entities
- Definition: An entity represents a real-world object or concept that we store
information about in the database. In SQL, entities generally translate to tables.
- Example: Entities could be `Customer`, `Order`, `Product`, or `Employee`.
- Representation: In an ER diagram, entities are represented by rectangles.
2. Attributes
- Definition: Attributes are characteristics or properties of an entity. In SQL,
attributes are the columns within a table.
- Types of Attributes:
- Primary Key (PK): A unique identifier for each entity instance (e.g.,
`Customer_ID`).
- Foreign Key (FK): An attribute that creates a link between two entities,
referencing the primary key of another entity.
- Representation: Attributes are often listed within or near the entity’s rectangle
in the ER diagram, with primary keys underlined or marked.
3. Relationships
- Definition: Relationships define how entities are related to one another. For
example, a `Customer` places an `Order`, or an `Employee` belongs to a
`Department`.
- Types of Relationships:
- One-to-One (1:1)**: Each instance of an entity is related to one instance of
another entity.
- One-to-Many (1:N): Each instance of one entity is related to multiple instances
of another.
-Many-to-Many (M:N): Each instance of one entity can relate to multiple
instances of another, and vice versa.
- Representation: Relationships are shown as lines connecting entities, often
labeled with symbols or words indicating cardinality (e.g., 1:1, 1:N, M:N).
36
ARSHI AGGARWAL
36150601722
SEMESTER-5TH
4. Cardinality and Participation
- Cardinality: Defines the numerical relationship between entities, such as "one-
to-one," "one-to-many," or "many-to-many."
- Participation: Indicates whether the relationship is mandatory (total
participation) or optional (partial participation).
ER diagrams provide the foundation for building SQL databases by defining tables,
columns, and relationships. Here’s a quick overview of how an ER diagram
translates into SQL components:
- Entities become Tables.
- Attributes become Columns.
- Primary Keys and Foreign Keys are defined to maintain data integrity.
- Relationships are represented by foreign keys in tables and, if needed, junction
tables for many-to-many relationships.
Example
For instance, imagine a simple ER diagram with two entities: `Customer` and
`Order`.
- The Customer entity has attributes `Customer_ID` (PK), `Name`, and `Email`.
- The Order entity has attributes `Order_ID` (PK), `Order_Date`, and
`Customer_ID` (FK).
- There is a **One-to-Many relationship** between `Customer` and `Order`,
meaning a customer can place multiple orders, but each order is associated with
one customer.
Importance of ER Diagrams in Database Design
37
ARSHI AGGARWAL
36150601722
SEMESTER-5TH
ER diagrams play a crucial role in SQL database design because they:
- Clarify Database Structure: They offer a visual layout that helps in understanding
the overall structure and connections within the database.
- Facilitate Communication: They help communicate the database design to
stakeholders and team members.
- Guide Database Normalization: They help identify dependencies and
relationships, assisting in avoiding data redundancy and ensuring efficient
database design.
In summary, ER diagrams serve as a blueprint for SQL databases, bridging the gap
between the conceptual data model and the actual database implementation.
38
ARSHI AGGARWAL
36150601722
SEMESTER-5TH