INFORMATION SYSTEM MANAGEMENT - PDF MKV
INFORMATION SYSTEM MANAGEMENT - PDF MKV
Batch: 2021-24
1
INDEX
S.No. Title Page no. Date Signature
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.
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);
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:
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
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
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-
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: %,_
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
condition ,QUERY: select name from emp where name like'A%'; Create
Table
values(01,"Sam","[email protected]",100000,"Sales"); Insert
into Employee
values(02,"Arman","[email protected]",110000,"HR");
values(03,"naman","[email protected]",90000,"Marketing");
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: %,_
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
Table
Employee
values(02,"Arman","[email protected]",110000,"HR");
values(03,"naman","[email protected]",90000,"Marketing"); select
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
It will display the ID and Name of those who live in Delhi only
Create Table
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
It will display the ID and Name of those who live in Delhi and Mumbai
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
varchar(20));
values(01,"Sam","Delhi",100000,"Sales"); Insert
into Employee
values(02,"Arman","Mumbai",110000,"HR");
values(03,"naman","Delhi",90000,"Marketing");
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
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
Create Table
Employee (Name varchar(20),city varchar(30),salary int(10),Department
varchar(20),Phonenumber int);
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