0% found this document useful (0 votes)
6 views5 pages

Ism Front & Index

Uploaded by

heppymiki
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views5 pages

Ism Front & Index

Uploaded by

heppymiki
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

INFORMATION SYSTEM

MANAGEMENT PRACTICAL
FILE
BBA-307

Submitted in partial fulfillment for the award of the Degree of

BACHELOR OF BUSINESS ADMINISTRATION


{BBA(G) 2022 - 2025}

Under the supervision of

MS. RADHIKA MAHAJAN

Submitted by

NAME: ARYAN KOTHARU


ENROLMENT NO.13917701722

VIVEKANANDA SCHOOL OF BUSINESS STUDIES


VIVEKANANDA INSTITUTE OF PROFESSIONAL STUDIES
(Affiliated to Guru Gobind Singh Indraprastha University)
Sno. Question Page No.
1 Steps to install MySql 1
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 (P_id, Lname, Fname, Address, Salary, City, D_id,
Pj_id)
D_id should be 1111 to 1120
Pj_id should be 111 to 115
Set default salary to 10,000
ii) Dept (D_id, D_name, D_floor)
iii) Project (Pj_id, Pj_name, Pj_duration, Pj_dept, Pj_d_id)
Note: User Varchar(255) for Pj_d_id
8 View Table Description using Desc
Persons
9 View Table Description using Describe
Dept
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 & Chcek constraint
Add gender in Persons after Fname. Gender should be Male,
Female or Others.
Delete column Pj_duration from Project table.
14 Rename table projects to April_Projects
15 Show Table Structure
Persons
16 Update Table
Add details for gender column
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
Display the details of all the persons in ascending order of
their names
Display the details of all the persons in descending order of
their Department Ids.
25 LIKE operator
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'.
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 View list of tables in a database
Delete a record
30 Drop Command
Delete a database
Note: Delete a database other that the one contating these
tables
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.
34 Create Table Orders(O_Id,OrderDate,OrderPrice,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 Left Outer Join
Tables- Persons & Department
47 Right Outer Join
Tables- Persons & Department
48 Create and insert values in Project1 and Project2 having the
following fields: E_id,E_name and Dept_id
49 Union all
50 Union
51 Commit

You might also like