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

DBMS & SQL Part 1 Interview Core Cs

This document provides an overview of key database concepts including: - A database is a collection of related data representing some aspect of the real world. A DBMS is software for storing and retrieving user data with security. - ER diagrams graphically represent the logical structure of a database using entity sets (sets of entities), attributes, and relationship sets (associations among entities). - Relationships can be unary (1 entity set), binary (2 entity sets), ternary (3 entity sets), or N-ary (N entity sets). Primary keys uniquely identify entities. - DBMS was developed to address issues with file processing systems like data redundancy, access difficulty, isolation, integrity, and concurrent

Uploaded by

Sanyog Mahajan
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)
33 views

DBMS & SQL Part 1 Interview Core Cs

This document provides an overview of key database concepts including: - A database is a collection of related data representing some aspect of the real world. A DBMS is software for storing and retrieving user data with security. - ER diagrams graphically represent the logical structure of a database using entity sets (sets of entities), attributes, and relationship sets (associations among entities). - Relationships can be unary (1 entity set), binary (2 entity sets), ternary (3 entity sets), or N-ary (N entity sets). Primary keys uniquely identify entities. - DBMS was developed to address issues with file processing systems like data redundancy, access difficulty, isolation, integrity, and concurrent

Uploaded by

Sanyog Mahajan
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/ 11

Let's Be Interview Ready

With Core CS Concepts


Networking
OOPS OS
system design DBMS & SQL
Part 1
Let's Revisit :
Database
DBMS
ER Diagrams(Important)
Entity Sets
Relationships

Database

A database is a collection of related data


which represents some aspect of the real
world. A database system is designed to be
built and populated with data for a certain
task.
Database Management System
(DBMS)
(DBMS) is a software for storing and
retrieving users' data while considering
appropriate security measures.

It consists of a group of programs which


manipulate the database.
Database Management System
(DBMS)
The DBMS accepts the request for data
from an application and instructs the
operating system to provide the specific
data.

In large systems, a DBMS helps users and


other third-party software to store and
retrieve data.
DBMS was developed to handle the following
difficulties of typical File-processing systems
supported by conventional operating systems.

1. Data redundancy and inconsistency


2. Difficulty in accessing data
3. Data isolation – multiple files and formats
4. Integrity problems
5. Atomicity of updates
6. Concurrent access by multiple users
7. Security problems
ER diagram (Important)
ER diagram or Entity Relationship
diagram is a conceptual model that gives
the graphical representation of the
logical structure of the database.

It shows all the constraints and


relationships that exist among the
different components.
An ER diagram is mainly composed of
following three components- Entity Sets,
Attributes and Relationship Set.

Roll_no is a primary key that can identify each


entity uniquely.

Thus, by using a student's roll number, a


student can be identified uniquely.
Entity Set:
An entity set is a set of the same
type of entities.
1. Strong Entity Set: A strong entity set is an
entity set that contains sufficient attributes
to uniquely identify all its entities.

2. Weak Entity Set: A weak entity set is an


entity set that does not contain sufficient
attributes to uniquely identify its entities.
Relationship :
A relationship is defined as an
association among several entities.
Unary Relationship Set - Unary
relationship set is a relationship set
where only one entity set participates in a
relationship set.

Binary Relationship Set - Binary


relationship set is a relationship set
where two entity sets participate in a
relationship set.
Relationship :

Ternary Relationship Set - Ternary


relationship set is a relationship set
where three entity sets participate in a
relationship set.

N-ary Relationship Set - N-ary relationship


set is a relationship set where ‘n’ entity
sets participate in a relationship set.
Share Your interview
Experiences in these Topics
below in Comments

Support With :

Follow
Saheb Kumar
for more DSA hacks!

You might also like