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
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.
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
• 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.
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