INFORMATION SYSTEM MANAGEMENT
Submitted in the Partial fulfillment for the award of Degree of
BACHELOR IN BUSINESSADMINISTRATION (G)
CHANDERPRABHU JAIN COLLEGE OF HIGHER STUDIES AND SCHOOL OF LAW
Batch: 2021-24
Under The Guidance: Submitted By:
Ms. Bhumika Manish Kumar Verma
Assistant Professor 00921501721
CHANDERPRABHU JAIN COLLEGE OF HIGHER STUDIES AND SCHOOL OF LAW
An ISO 9001: 2015 Certified Institute (Approved by the
Govt.of NCT Delhi Affiliated to Guru Gobind Singh
Indraprastha University, Delhi & Approved byBar council of
India) Plot NoOCFSectorA-8, Narela New Delhi- 110040
1
INDEX
S.No. Title Page no. Date Signature
1 Introduction to database 3-4 22.08.23
2 ER diagram of the hospital management 5 29.08.23
system?
3 ER diagram of examination system? 6 06.09.23
4 Create studenttable? 7 06.09.23
5 Create EMP_Info table practical? 8 19.09.23
6 Display the salaries of the employees from 9 22.09.23
EMP_Info table?
7 Display different departments from the 10 26.09.23
EMP_Info table?
8 Display total numbers of departments in 11 27.09.23
the company form EMP_Info table
9 Display the name of employees whose 12 03.10.23
name starts with ‘a’ from the EMP_Info
table.
10 Displaythe name of those employees 13-14 04.10.23
whose 2nd alphabet is ‘a’?
11 Display the id and name of those 15 04.10.23
employees who live in Delhi?
12 Display id and names of those employees 16 10.10.23
who live in Delhi/Mumbai?
13 Display name and maximum salaries each 17-18 11.10.23
department of company?
14 Add phone no column in EMP_Info table 19 17.10.23
15 Update the city of Mr Sam from Delhi to 20 18.10.23
Uttar Pradesh
2
Q-1 Introduction to Database
A database is an organised collection of structured information, or data,
typically stored electronically in a computer system. A database is usually
controlled by a database management system (DBMS). Together, the data and
the DBMS, along with the applications that are associated with them, are
referred to as a database system, often shortened to just database.
Data within the most common types of databases in operation today is typically
modelled in rows and columns in a series of tables to make processing and data
querying efficient. The data can then be easily accessed, managed, modified,
updated, controlled, and organised. Most databases use structured query
language (SQL) for writing and querying data.
Types of databases
There are many different types of databases. The best database for a specific
organisation depends on how the organisation intends to use the data.
. Relational databases
Relational databases became dominant in the 1980s. Items in a relational
database are organised as a set of tables with columns and rows. Relational
database technology provides the most efficient and flexible way to access
structured information.
. Object-oriented databases
Information in an object-oriented database is represented in the
form of objects, as in object-oriented programming.
. Distributed databases
A distributed database consists of two or more files located in
different sites. The database may be stored on multiple computers,
located in thesame physical location, or scattered over different
networks.
Data warehouses
A central repository for data, a data warehouse is a type of database specifically
designed for fast query and analysis.
3
What is database software?
Database software is used to create, edit, and maintain database files and
records, enabling easier file and record creation, data entry, data editing,
updating, andreporting. The software also handles data storage, backup and
reporting, multi-accesscontrol security. Strong database security is especially
important today, as data theft becomes more frequent. Database software is
sometimes also referred to asa“databasemanagementsystem”(DBMS).
There are various types of database software available, including:
• Relational Database Management Systems (RDBMS): These systems organize data
into tables consisting of rows and columns, with relationships established between
different tables. Examples include MySQL, PostgreSQL, Oracle Database, Microsoft
SQL Server, and SQLite.
• NoSQL Databases: Unlike RDBMS, NoSQL databases use different data models and
structures to handle unstructured or semi-structured data. Examples include MongoDB,
Cassandra,Redis,andCouchbase.
• Cloud Databases: These databases are hosted on cloud platforms, offering scalability,
high availability, and accessibility over the internet. Examples include Amazon RDS,
Google Cloud Spanner, and Microsoft Azure Cosmos DB.
• Graph Databases: Designed to manage data whose relations are represented in a
graph structure. Examples include Neo4j and Amazon Neptune.
• In-Memory Databases: These databases store data in main memory (RAM) to
provide faster data access and processing. Examples include Redis, MemSQL, and
VoltDB.
Database software provides functionalities such as data storage, retrieval,
querying using a structured query language (SQL) or a query language specific
to the database, data security, backup, indexing, and transaction management.
Organizations use database software to efficiently manage their data, whether for
business operations, analytics, or other purposes.
4
Q2 ER diagram Of Hospital Management System
5
Q3 ER Diagram of Examination system
6
Q4 Create a Student Table
Creating a basic table involves naming the table and defining its columns and each
column’s data type:
SYNTAX: create table name(column1 data type, column2 data type, column3 data type,
column data type);
QUERY: For creating students table the following command is:
Create Table
BBA_V (EnrollementNo int, Name varchar (30),Phone Number int, City varchar(30));
INSERT VALUE IN TABLE:
Insert into BBA_V
values(11001301923,"Adhyan",9871623101,"Delhi"); Insert
into BBA_V
values(120310103102,"Ansh",9213901222,"Delhi");
Insert into BBA_V
values(1201121201,"Ashutosh",92102133456,"Delhi"); Insert
into BBA_V
values(10112120112,"Sachin",9811023457,"Delhi");
Output
7
Q5 Create a employee information table
Creating a basic table involves naming the table and defining its columns and
eachcolumn’s data type:
QUERY: For creating students table the following command is:
Create Table
Employee (EmployeeID int,Name varchar(20),EmailID varchar(30),salary int(10),Department
varchar(20));
Insert into Employee
values(01,"Sam","
[email protected]",100000,"Sales"); Insert into
Employee
values(02,"Arman","
[email protected]",110000,"HR");
Insert into Employee
values(03,"naman","
[email protected]",90000,"Marketing"); Output
8
Q6 Display the salaries of the employees from Employee Information table?
First we have to display the table where all records are entered for the following command is –
select * from emp the table will execute with the field you have entered
QUERY: select salary from emp; Create
Table
Employee (EmployeeID int,Name varchar(20),EmailID varchar(30),salary int(10),Department
varchar(20));
Insert into Employee
values(01,"Sam","
[email protected]",100000,"Sales"); Insert into
Employee
values(02,"Arman","
[email protected]",110000,"HR");
Insert into Employee
values(03,"naman","
[email protected]",90000,"Marketing"); Output
9
Q7 Display different departments from Employee Information
table?
First we have to display the table where all records are entered for the
following command is
– select * from emp the table will execute with the field you have entered
QUERY: select department from emp
Employee (EmployeeID int,Name varchar(20),EmailID varchar(30),salary int(10),Department
varchar(20));
Insert into Employee
values(01,"Sam","
[email protected]",100000,"Sales"); Insert into
Employee
values(02,"Arman","
[email protected]",110000,"HR");
Insert into Employee
values(03,"naman","
[email protected]",90000,"Marketing"); Output
10
Q8 Display total numbers of departments in the company form
Employee Information table?
First we have to display the table where all records are entered for the following
command is
– select * from emp the table will execute with the field you have entered
QUERY-
select count(department) from emp
Employee (EmployeeID int,Name varchar(20),EmailID varchar(30),salary int(10),Department
varchar(20));
Insert into Employee
values(01,"Sam","[email protected]",100000,"Sales"); Insert into
Employee
values(02,"Arman","
[email protected]",110000,"HR");
Insert into Employee
values(03,"naman","
[email protected]",90000,"Marketing"); select
count(department) from employee
11
Q9 Display the name of employeeswhose name starts with ‘a’ from Employee
Information table?
Under this LIKE operator is used to search for a specified pattern in a columnthere are 2
wildcards often used in conjunction with the like operator: %,_
% represents zero or more characters
_ represents a single character
We also used WHERE clause in the command WHERE clause allows you to
specify a search condition for the rows returned by the query WHERE clause
selectstatement is to filter rows from the result set
SYNTAX: select column1,column2.from table_name where
condition ,QUERY: select name from emp where name like'A%'; Create
Table
Employee (EmployeeID int,Name varchar(20),EmailID
varchar(30),salary int(10),Department varchar(20));
Insert into Employee
values(01,"Sam","[email protected]",100000,"Sales"); Insert
into Employee
values(02,"Arman","[email protected]",110000,"HR");
Insert into Employee
values(03,"naman","[email protected]",90000,"Marketing");
select name from employee where name like'A%';
12
Q10 Display the name of those employees whose 2nd alphabet is
‘a’?
Under this LIKE operator is used to search for a specified pattern in a column
there are 2 wildcards often used in conjunction with the like operator: %,_
% represents zero or more characters
_ represents a single character
We also used WHERE clause in the command WHERE clause allows you to specify
a search condition for the rows returned by the query WHERE clause selectstatement
is to filter rows from the result set
SYNTAX: select column1,column2.from table_name where condition
,QUERY: select name from emp where name like'_A%'; Create
Table
Employee (EmployeeID int,Name varchar(20),EmailID
varchar(30),salary int(10),Department varchar(20));
Insert into Employee
values(01,"Sam","[email protected]",100000,"Sales"); Insert into
Employee
values(02,"Arman","[email protected]",110000,"HR");
Insert into Employee
values(03,"naman","[email protected]",90000,"Marketing"); select
name from employee where name like'_A%';
13
Output
14
Q11 Display the id and name of those employees who live in Delhi?
Under this command WHERE clause allows you to specify a search condition for the
rows returned by the query WHERE clause select statement is to filter rows from the
result set
QUERY: select EMP_ ID, NAME FROM EMP WHERE CITY=”DELHI”
It will display the ID and Name of those who live in Delhi only
Create Table
Employee (EmployeeID int,Name varchar(20),city varchar(30),salary
int(10),Department varchar(20));
Insert into Employee
values(01,"Sam","Delhi",100000,"Sales"); Insert
into Employee
values(02,"Arman","Mumbai",110000,"HR");
Insert into Employee
values(03,"naman","Delhi",90000,"Marketing");
Output
15
Q12 Display id and names of those employees who live in Delhi/Mumbai?
Under this command WHERE clause allows you to specify a search condition for the
rows returned by the query WHERE clause select statement is to filter rows fromthe
result set We also use OR operator which display a record if any of condition separated
by OR id true
QUERY: select EMP_ ID, NAME FROM EMP
WHERECITY=”DELHI”ORCITY=”MUMBAI”
It will display the ID and Name of those who live in Delhi and Mumbai
Employee (EmployeeID int,Name varchar(20),city varchar(30),salary int(10),Department
varchar(20));
Insert into Employee
values(01,"Sam","Delhi",100000,"Sales"); Insert
into Employee
values(02,"Arman","Mumbai",110000,"HR");
Insert into Employee
values(03,"naman","Delhi",90000,"Marketing");
select city,name from employee where city="delhi"or city="mumbai";
Output
16
Q13 Display name and maximum salaries each department of
company?
Under this command WHERE clause allows you to specify a search condition for the
rows returned by the query WHERE clause select statement is to filter rows from the
result set Apart from that MAX() function is also used it is an aggregate function that
returnsthe maximum value of an expression
SYNTAX: MAX(DISTNICT expression)
QUERY: select name,department from emp where salary=(select max(salary)from
emp);
Create Table
Employee (EmployeeID int,Name varchar(20),city varchar(30),salary int(10),Department
varchar(20));
Insert into Employee
values(01,"Sam","Delhi",100000,"Sales"); Insert
into Employee
values(02,"Arman","Mumbai",110000,"HR");
Insert into Employee
values(03,"naman","Delhi",90000,"Marketing");
select name,department from employee where salary=(select
max(salary) from employee);
Output
17
Q14 Add phone no column in Employee information table
Here ALTER command is used it helps to modify an existing database and table
theALTER statement is used to ADD and MODIFY the existing table
ADD COLUMN : to add a column in table
SYNTAX: ALTER table _name ADD column_name
Create Table
Employee (Name varchar(20),city varchar(30),salary int(10),Department varchar(20),Phonenumber
int);
Insert into Employee
values("Sam","Delhi",100000,"Sales",9876543210);
Insert into Employee
values("Arman","Mumbai",110000,"HR",9081240810);
Insert into Employee
values("naman","Delhi",90000,"Marketing",9087644251);
Output
18
Q15 Update the city of Mr Sam from Delhi to Uttar Pradesh
Here UPDATE statement is used it helps to modify existing data in table
updatestatement change value in one or more columns of a single row of multi
rows
SYNTAX: UPDATE TABLE_NAME SET COLUMN1= VALUE
WHERESOME_COLUMN=SOME_VALUE
QUERY: update emp set city= "uttar pradesh" where name="SAM";
Create Table
Employee (Name varchar(20),city varchar(30),salary int(10),Department
varchar(20),Phonenumber int);
Insert into Employee
values("Sam","Delhi",100000,"Sales",9876543210); Insert
into Employee
values("Arman","Mumbai",110000,"HR",9081240810); Insert
into Employee
values("naman","Delhi",90000,"Marketing",9087644251);
update employee set city= "uttar pradesh" where name="Sam"; select * from employee
Output
19
20