You are on page 1of 4

INFORMATION SYSTEM MANAGEMENT

PRACTICAL FILE
BCOM-307

Submitted in partial fulfillment for the award of the Degree


of

BACHELOR OF COMMERCE
{B.COM (H) 2020 – 2023}
Under the supervision of
MS. RADHIKA MAHAJAN

Submitted by

ARIHANT JAIN
0301778820

VIVEKANANDA SCHOOL OF BUSINESS STUDIES


VIVEKANANDA INSTITUTE OF PROFESSIONAL
STUDIES
(Affiliated to Guru Gobind Singh Indraprastha University)
INDEX
S No. Topic Page No.
1 Steps to install MySQL
2 Types of SQL commands
3 Keys in SQL
4 Integrity constraints in SQL
5 Create Database
6 Open Database
7 Create Tables
i) Persons
ii) Dept
iii) Project
8 View Table Description using Desc- Persons
9 View Table Description using Desc
i) Dept
ii)Project
10 Insert Records
i) Persons- 19 records
Using default salary- 1 record
ii) Dept- Same as given
iii) Project- Same as given
11 Primary Key
i) Persons- P_id
ii) Dept- D_id
iii) Project- Pj_id
12 Foreign Key
i) D_id in Persons references D_id in Department
ii) Pj_id in Persons references Pj_id in Project
13 Alter Table & Check constraint
i) Add gender in Persons after Fname. Gender should
be Male, Female or Others.
ii) Delete column Pj_duration from Project table.
14 Rename table projects to April_Projects
15 Show Table Structure Persons
16 Update Table
i) Add details for gender column
ii) Update P_id to 103 for person whose last name is
"Gupta"
17 Delete statement
Delete the record of the person whose P_id is 101.
18 View All Records Persons
19 View Selective Records using where clause
Display the details of persons whose department id is
1111.
20 View Selective Fields
Display P_id, Fname & Salary of all persons
21 Select Distinct
List all the distinct city names from persons.
22 AND operator
Display the details of persons whose reside is Delhi &
whose department id is 1111.
23 OR operator
Display the details of persons whose reside is Delhi or
whose department id is 1111.
24 Order By Clause
i) Display the details of all the persons in ascending
order of their names
ii) Display the details of all the persons in descending
order of their Department Ids.
25 LIKE operator
i) Display the details of all the persons whose city
name contains the pattern "elh". Display the details of
all the persons whose second alphabet of the name is
'a'.
ii) Display the details of all the persons whose
lastname starts with 'B' or 'S'. Display the details of all
the persons whose lastname does not start with 'B','S'
or 'P'.
26 In Operator
Display the details of all the persons who reside in
Delhi, Mumbai or Kolkata.
27 Between Operator
Display the details of all the persons whose
department id is between 2 to 6.
28 View List of Databases
29 i) View list of tables in a database
ii) Delete a record
30 i) Drop Command- Delete a database
ii) Delete table April_Projects
31 SUM function
Calculate the total salaries of all the persons whose
department id is 1111.
32 Group By statement
Display D_id and corresponding total salaries of all the
departments
33 Having clause
Display D_id and corresponding total salaries of all the
departments having total salaries greater than
70,000.
Create Table Orders (O_Id, OrderDate, OrderPrice,
34
Customer)
35 AVG Function
Display the names of customers whose Order Price is
greater than the average Order Price from Orders
table.
36 Count Function
Display the total number of records in orders table
37 Count Distinct
Count Distinct Customers from Orders Table
38 Max Function
Display the maximum Order Price from Orders table.
39 Min Function
Display the minimum Order Price from Orders table.
40 UCASE Function
Display the customer names from Orders table in
capital letters or uppercase.
41 LCASE Function
Display the customer names from Orders table in
small letters or lowercase.
42 MID Function
Display the first 3 alphaphets of city from Persons
table.
43 LENGTH Function
Display all the addresses along with their
corresponding length from Persons table.
44 Cross Join
Tables- Persons & Department
45 Inner Join
Tables- Persons & Department
46 FULL OUTER JOIN
Tables- Persons & Department
47 Left Outer Join
Tables- Persons & Department
48 Right Outer Join
Tables- Persons & Department
49 Union
Create table Project1 and Project2 having attributes
E_Id, E_Name, Dept_Id)
50 Union All- Project1 & Project2
51 Commit

You might also like