Professional Documents
Culture Documents
ISM Practical File Rekha
ISM Practical File Rekha
ISM Practical File Rekha
ON
INFORMATION SYSTEM MANAGEMENT-LAB
This is to certify that the practical titled “Information System Management-Lab” submitted by
REKHA RAWAT to New Delhi Institute of Management, Guru Gobind Singh Indraprastha
University in partial fulfilment of requirement for the award of the Bachelor of Business
Administration degree is an original piece of work carried out under my guidance and may be
submitted for evaluation.
The assistance rendered during the study has been duly acknowledged.
No part of this work has been submitted for any other degree.
Faculty Guide
Mr. Shailendra Kumar
Date:26 march 2022
ACKNOWLEDGEMENT
Any accomplishment requires the effort of many people and this work is not different.
Regardless of the source, I wish to express my gratitude to those who may have contributed
to this work, even though anonymously.
My final thank goes out to my parents, family members, teachers and friends who
encouraged me countless times to persevere through this entire process.
REKHA RAWAT
INDEX
1 Explain Information System Management.
a. DSS
b. EIS
c. TPS
2 Introduction of Database Management System.
COMPONENTS
1. Model Management System
The model management system S=stores models that managers can use in their
decision-making. The models are used in decision-making regarding the financial
health of the organization and forecasting demand for a good or service.
2. User Interface
The user interface includes tools that help the end-user of a DSS to navigate through
the system.
3. Knowledge Base
The knowledge base includes information from internal sources (information collected
in a transaction process system) and external sources (newspapers and online
databases).
TYPES OF DSS
Communication-driven: Allows companies to support tasks that require more than
one person to work on the task. It includes integrated tools such as Microsoft
SharePoint Workspace and Google Docs.
Data-driven: Helps companies to store and analyze internal and external data.
EXECUTIVE INFORMATION SYSTEM
COMPONENTS
USER INTERFACE: User Interface allows the users to communicate with
the EIS. User interface must be easy to use and understand. Users should
not be required to understand the complex query languages and other
mathematical or statistical formulas.
HARDWARE: Hardware refers to devices by which users give input, data
processing and the output is received. Users may give input via keyboard
and mouse and CPU may be used for processing and output may be
received on monitor or from printer.
SOFTWARE: Software is required for various calculations, providing
graphical view to the management, storing data in the form of
Information, etc. Software allows user to get information in the form it is
actually required.
TELECOMMUNICATION: In today’s world the most important thing is
communication. Users may require transferring information from one
point to another point. The information might be a little confidential in
nature. The secrecy of the information should be well maintained.
Transaction Processing System (TPS)
TPS is an information system that is used to process day to day transactions
such as purchases, expenses, sales, receipts, payments, etc. TPS may provide us
with meaningful routine reports such as profit & loss a/c and balance sheet,
etc.
TPS basically manipulates data from business transactions. The users of TPS
generally are not in a position to make typical management decisions. A TPS
captures data, processes it and makes available such data in the form of
reports to be utilized by the management. TPS is the oldest known information
system used for business applications. However, TPS has progressed a lot since
then, majorly due to availability of the Internet.
Components
Inputs: Source documents such as Customer orders, invoices, purchase
orders, etc. serves as Inputs to the TPS system.
Processing: Once the inputs are provided, they are further processed to
get an output.
Storage: Ledgers serves as a source of storage.
Output: Any document generated is termed as output.
DBMS : Database Management
System
A database management system (DBMS) is a software tool
that enables users to manage a database easily. It allows
users to access and interact with the underlying data in the
database. These actions can range from simply querying data
to defining database schemas that fundamentally affect the
database structure.
DDL
Data Definition Language(DDL) is a subset of SQL and a part
of DBMS(Database Management System) . DDL consist of Commands to
commands like CREATE, ALTER, TRUNCATE and DROP. These
commands are used to create or modify the tables in SQL.
Command-1 : CREATE
This command is used to create a new table in SQL. The user has to give
information like table name, column names, and their datatypes.
Syntax –
CREATE TABLE table_name
(column_1 datatype,
column_2 datatype,
column_3 datatype,
.... );
Example
Command-2 : ALTER
This command is used to add, delete or change columns in the existing table.
The user needs to know the existing table name and can do add, delete or
modify tasks easily.
Syntax –
Syntax to add a column to an existing table.
Example
In our Student_info table, we want to add a new column for CGPA. The
syntax would be as below as follows.
Command-3 : TRUNCATE
This command is used to remove all rows from the table, but the structure of
the table still exists.
Syntax
Syntax to remove an existing table.
Example
The College Authority wants to remove the details of all students for new
batches but wants to keep the table structure. The command they can use is
as follows.
Syntax
–
Syntax to drop an existing table.
DROP TABLE table_name;
Example
DML
DML stands for Data Manipulation Language. Tables and formulas are
helpful when communicating with data stored up to a point in a database
through SQL, but a time comes when we actually want to execute some
fairly complicated data interactions. We will also need the Data
Manipulation Language in that situation. DML is a way to inform a
database precisely what we want it to do by conversing in a manner that it
has been built to comprehend from the scratch. When it comes to
interacting within existing data, whether adding, moving, or deleting data, it
provides a convenient way to do so.
Command-1 SELECT
This command is used to get data out of the database. It helps users of the
database to access from an operating system, the significant data they
need. It sends a track result set from one tables or more.
Syntax :
SELECT * FROM <table_name>;
EXAMPLE:
SELECT * FROM students;
Command-2 INSERT
This command is used to enter the information or values into a row. We can
connect one or more records to a single table within a repository using this
instruction. This is often used to connect an unused tag to the documents.
Syntax :
INSERT INTO <table_name>
('column_name1' <datatype>, 'column_name2' <datatype>)
VALUES ('value1', 'value2');
Example :
INSERT INTO students
('stu_id' int, 'stu_name' varchar(20), 'city' varchar(20))
VALUES ('1', 'Nirmit', 'Gorakhpur');
Command-3 UPDATE
Syntax :
UPDATE <table_name>
SET <column_name = value>
WHERE condition;
Example :
UPDATE students
SET due_fees = 20000
WHERE stu_name = 'Mini';
Command-4 DELETE
It deletes all archives from a table. This command is used to erase some or
all of the previous table’s records. If we do not specify the ‘WHERE’
condition then all the rows would be erased or deleted.
Syntax :
DELETE FROM <table_name>
WHERE <condition>;
Example :
DELETE FROM students
WHERE stu_id = '001';
TCL
TCL stands for Transaction Control Languages. These commands are
used for maintaining consistency of the database and for the management
of transactions made by the DML commands.
A Transaction is a set of SQL statements that are executed on the data
stored in DBMS. Whenever any transaction is made these transactions are
temporarily happen in database.So to make the changes permanent, we
use TCL commands.
Name Marks
John 79
Jolly 65
Shuzan 70
COMMAND-1 COMMIT
Syntax:
commit;
EXAMPLE:
UPDATE STUDENT
SET NAME = ‘Sherlock’
WHERE NAME = ‘Jolly’
COMMIT;
OUTPUT:
Name Marks
John 79
Sherlock 65
Shuzan 70
COMMAND:2 ROLLBACK
This command is used to get the data or restore the data to the last savepoint
or last committed state. If due to some reasons the data inserted, deleted or
updated is not correct, you can rollback the data to a particular savepoint or if
savepoint is not done, then to the last committed state.
Syntax:
rollback;
EXAMPLE:
UPDATE STUDENT
SET NAME = ‘Sherlock’
WHERE NAME = ‘Jolly’
ROLLBACK;
OUTPUT:
Name Marks
John 79
Jolly 65
Shuzan 70
COMMAND:3 SAVEPOINT
Syntax:
Savepoint A;
EXAMPLE:
INSERT into STUDENT
VALUES ('Jack', 95);
Commit;
UPDATE NAME
SET NAME= ‘Rossie’
WHERE marks= 70;
SAVEPOINT A;
INSERT INTO STUDENT
VALUES (‘Zack’, 76);
Savepoint B;
INSERT INTO STUDENT
VALUES (‘Bruno’, 85);
Savepoint C;
SELECT *
FROM STUDENT;
OUTPUT:
Name Marks
John 79
Jolly 65
Rossie 70
Jack 95
Zack 76
Bruno 85
AGGREGATE FUNCTIONS
An aggregate function in SQL returns one value after calculating multiple
values of a column. We often use aggregate functions with the GROUP BY
and HAVING clauses of the SELECT statement.
Count()
Sum()
Avg()
Min()
Max()
1. COUNT() Function
Syntax:
COUNT(*) or
Example:
We will use the ‘products’ table from the sample database for our
demonstration.
The following SQL statement fetches the number of products in the table.
The below-given command will display those product ids where the unit price is
greater than 4.
Let's look at how we can use GROUP BY and HAVING functions with the
COUNT function.
2. SUM() Function
Syntax:
SUM() or
Example:
The following SQL statement finds the sum of the "unit price" fields in the "products"
table:
Let’s look at how we can use GROUP BY and HAVING functions with the SUM
function.
3. AVG() Function
Syntax:
AVG() or
Example:
The MIN() aggregate function returns the lowest value (minimum) in a set of non-
NULL values.
Syntax:
MIN() or
Example:
The above code will give us the minimum quantity in stock in the products table.
5. MAX() Function
The MAX() aggregate function returns the highest value (maximum) in a set of non-
NULL values.
Syntax:
AVG() or
AVG( [ALL|DISTINCT] expression )
Example:
The code depicted below will give us the maximum quantity in stock in the products
table.
Entities
Attributes
Relationships
EXAMLE:
The library management system has a database that shows the
relationships between the entities such as a book, publisher, and
member. Since this is a simple system, it has only three entities. Other
systems can be more complex with a more significant number of entities
such as staff etc. book entity can have attributes like book_ID, title, price,
and availability. Publisher entity can have attributes like publisher_ID,
publisher_address, and publisher_name. member entity can have
attributes like member_ID, member_date, member_type,
member_address, member_name, and expiry_date.
STEP- 2
INSERT INTO EMPLOYEE
(EMP_ID, EMP_NAME ,EMP_DEPT, EMP_ADDRESS, MOBILE_NUMBER,
EMP_SALARY)
VALUES('101', 'REKHA', 'HR', 'KALKAJI', '9876543456', '65000');
STEP- 3 RECORD MORE VALUES .
FINAL OUTPUT:
SUM( )
SELECT SUM(EMP_SALARY) from Employee ;
MAX( )
SELECT MAX(EMP_SALARY) from Employee ;
MIN( )
SELECT MIN(EMP_SALARY) from Employee ;
AVG( )
SELECT AVG(EMP_SALARY) from Employee ;
GROUP BY :
SELECT EMP_NAME,EMP_ID,EMP_SALARY from Employee GROUP BY
EMP_NAME;
COUNT(*):
SELECT EMP_NAME,
COUNT(*) FROM EMPLOYEE GROUP BY EMP_ID ;
UPDATE:
UPDATE EMPLOYEE
SET EMP_SALARY = "1000000"
WHERE EMP_ID = "104" ;
LIKE:
SELECT * FROM EMPLOYEE WHERE EMP_NAME LIKE "M%" ;
SELECT *FROM EMPLOYEE WHERE EMP_NAME LIKE "_A%";
DELETE:
DELETE FROM EMPLOYEE
WHERE EMP_ID = "104" ;
QUERY
1. ALTER COMMAND
Syntax
The basic syntax of an ALTER TABLE command to add a New Column in an existing table is as
follows.
ALTER TABLE table_name ADD column_name datatype;
The basic syntax of an ALTER TABLE command to DROP COLUMN in an existing table is as
follows.
ALTER TABLE table_name DROP COLUMN column_name;
EXAMPLE: 1
ALTER TABLE CUSTOMERS ADD SEX char(1);
OUTPUT:
ID | NAME | AGE | ADDRESS | SALARY | SEX |
| 1 | Ramesh | 32 | Ahmedabad | 2000.00 | NULL |
| 2 | Ramesh | 25 | Delhi | 1500.00 | NULL |
| 3 | kaushik | 23 | Kota | 2000.00 | NULL |
| 4 | kaushik | 25 | Mumbai | 6500.00 | NULL |
| 5 | Hardik | 27 | Bhopal | 8500.00 | NULL |
| 6 | Komal | 22 | MP | 4500.00 | NULL |
| 7 | Muffy | 24 | Indore | 10000.00 | NULL |
EXAMPLE 2:
ALTER TABLE CUSTOMERS DROP SEX;
OUTPUT:
ID | NAME | AGE | ADDRESS | SALARY
| 1 | Ramesh | 32 | Ahmedabad | 2000.00 |
| 2 | Ramesh | 25 | Delhi | 1500.00 |
| 3 | kaushik | 23 | Kota | 2000.00 |
| 4 | kaushik | 25 | Mumbai | 6500.00 |
| 5 | Hardik | 27 | Bhopal | 8500.00 |
| 6 | Komal | 22 | MP | 4500.00 |
| 7 | Muffy | 24 | Indore | 10000.00 |
2 INSERT COMMAND
Syntax
INSERT INTO TABLE_NAME
(column1, column2, column3,...columnN)
VALUES (value1, value2, value3,...valueN);
EXAMPLE :
INSERT INTO CUSTOMERS (ID,NAME,AGE,ADDRESS,SALARY)
VALUES (1, 'Ramesh', 32, 'Ahmedabad', 2000.00 );
OUTPUT:
ID | NAME | AGE | ADDRESS | SALARY |
| 1 | Ramesh | 32 | Ahmedabad | 2000.00 |
| 2 | Khilan | 25 | Delhi | 1500.00 |
| 3 | kaushik | 23 | Kota | 2000.00 |
| 4 | Chaitali | 25 | Mumbai | 6500.00 |
| 5 | Hardik | 27 | Bhopal | 8500.00 |
| 6 | Komal | 22 | MP | 4500.00 |
3 UPDATE COMMAND
Syntax:
The basic syntax of the UPDATE query with a WHERE clause is as follows −
UPDATE table_name
SET column1 = value1, column2 = value2...., columnN =
valueN
WHERE [condition];
EXAMPLE:
UPDATE CUSTOMERS
SET ADDRESS = 'Pune'
WHERE ID = 6;
OUTPUT:
Syntax
or
or
or
or
EXAMPLE:
Consider the CUSTOMERS table having the following records −
It will display all the records from the CUSTOMERS table, where the SALARY starts with 200.
OUTPUT:
ID | NAME | AGE | ADDRESS | SALARY |
| 1 | Ramesh | 32 | Ahmedabad | 2000.00 |
| 3 | kaushik | 23 | Kota | 2000.00