0% found this document useful (0 votes)
10 views7 pages

Print

The document describes an experiment on creating an entity-relationship (ER) diagram for a library management system using case tools. It defines the key components of an ER model as entities, attributes, and relationships. Entities represent real-world things with unique attributes. Relationships associate entities. The document provides an example ER diagram modeling the entities, attributes, and relationships of a library system.

Uploaded by

Himanshu Kashyap
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)
10 views7 pages

Print

The document describes an experiment on creating an entity-relationship (ER) diagram for a library management system using case tools. It defines the key components of an ER model as entities, attributes, and relationships. Entities represent real-world things with unique attributes. Relationships associate entities. The document provides an example ER diagram modeling the entities, attributes, and relationships of a library system.

Uploaded by

Himanshu Kashyap
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/ 7

Himanshu Kashyap

2001920100119

Experiment 2
Aim: Application of Creation, Deletion, Insertion, Updation, Alter , Destroy, Rename
Commands

Procedure:

# Create Database.
Syntax: CREATE DATABASE
<db_name>; Output:

# Drop Database.
Syntax: DROP DATABASE
<db_name> Output:

# Create Table.
Syntax: CREATE TABLE <table_name>(attribute1 data-type1, attribute2 data-
type2,…,attributen datatypen)
Output:
Himanshu Kashyap
2001920100119

# Not Null on Create Table.

Syntax: CREATE TABLE <table_name>(attribute1 data-type1 not null,…,attributen data-


typen) Output:

# Unique on Create Table.


Syntax: CREATE TABLE <table_name>(attribute1 data-type1 not null,…,attributen data-
typen) Output:
Himanshu Kashyap
2001920100119

# Auto-increment on Create Table.


Syntax: CREATE TABLE <table_name>(attribute1 data-type1 not null
auto_increment,…,attributen data-typen) Output:

# Insert value(s) into Table.


Syntax: INSERT INTO <table_name>(Column1,…Column-n) VALUES(V1,…V-
n),(U1,…Un)…(A1,…A-n); Output:
Himanshu Kashyap
2001920100119

Experiment 10
Aim: Creating Entity-Relationship Diagram using case tools.

Procedure:

E-R model

The ER or (Entity Relational Model) is a high-level conceptual data model diagram. Entity-
Relation model is based on the notion of real-world entities and the relationship between
them.

ER modeling helps you to analyze data requirements systematically to produce a well-


designed database.

Entity relationship diagram displays the relationships of entity set stored in a database. In
other words, we can say that ER diagrams help you to explain the logical structure of
databases. At first look, an ER diagram looks very similar to the flowchart. However, ER
Diagram includes many specialized symbols, and its meanings make this model unique.

Component of ER Model

Entity relationship model having three components are • Entity

• Attributes
• Relationship

Entity:- A real-world thing either living or non-living that is easily recognizable and no
recognizable. It is anything in the enterprise that is to be represented in our database. It may
be a physical thing or simply a fact about the enterprise or an event that happens in the real
world. An entity can be place, person, object, event or a concept, which stores data in the
database. The characteristics of entities are must have an attribute, and a unique key. Every
entity is made up of some 'attributes' which represent that entity.

Attribute: - Attribute are unit that describe the characteristics are properties of entity.

Relationship:- Relationship is nothing but an association among two or more entities.

E-R Diagram for Library Management System


Compiler Design
Lab
KCS-552

Himanshu Kashyap
2001920100119

5th
Ms. Annu
Design and Analysis of Algorithm
Lab
KCS-553

Himanshu Kashyap
2001920100119

5th
Mr. Arun Kashyap
Database Management System
Lab
KCS-551

Himanshu Kashyap
2001920100119

5th
Dr. Asha Rani Mishra

You might also like