0% found this document useful (0 votes)
46 views27 pages

Ism Practical

The document contains a certification for a student project submission and various SQL queries and answers related to creating and manipulating a student database table. It certifies a student's project, provides sample SQL queries for creating a student table, inserting records, updating, deleting and selecting data from the table. It also provides answers to the sample queries.

Uploaded by

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

Ism Practical

The document contains a certification for a student project submission and various SQL queries and answers related to creating and manipulating a student database table. It certifies a student's project, provides sample SQL queries for creating a student table, inserting records, updating, deleting and selecting data from the table. It also provides answers to the sample queries.

Uploaded by

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

Trinity Institute of Professional Studies

Affiliated To Guru Gobind Singh Indraprastha University


SECTOR 16-C, DWARAKA, NEW DELHI

Subject

------------------------------------------------------------------------------

Assignment/ Case Study/PPT

-----------------------------------------------------------------------------------------------

Submitted By: Submitted to:


Name of Student:------------------------------------ Name of Faculty: -------------------------
-----------
Enrollment Number: ---------------------------- Designation:-------------------------------
-----------
To Whom So Ever It May Concern

This is to certify that the project work


“Information System Management Lab File”
made by Kartikay Vashisht, BBA(G),4th
semester, Enrolment no. 0486020170 is an
authentic work carried out by him/her under
guidance and supervision of Ms. Sweety
Mokhria.

The project report submitted has been found


satisfactory for the partial fulfilment of the
degree of Bachelor of Business Administration.

Project Supervisor
Ms. Sweety Mokhria
Declaration

I hereby declared that the following


documented project file on “ISM” is an original
and authentic work done by me for the partial
fulfilment of Bachelor of Business
Administration (general) degree program.

I hereby declare that all the endeavour put in


the fulfilment of the task is genuine and
original to the best of my knowledge and I have
not submitted it earlier elsewhere.

Kartikay Vashisht
BBA (gen.)
0486020170
4th Semester
1st Shift
Acknowledgement

It is in particular that I am acknowledging my


sincere feelings towards my mentors who
graciously gave me their time and expertise.

They have provided me with the valuable


guidance sustained and friendly approach
otherwise it would have been difficult to
achieve the results in such a short spam of time
without their help.

I deem it my duty to record my gratitude


towards my internal project supervisor ‘Ms.
Sweety Mokhria’ who devoted her precious time
to interact, guide and gave me the right
approach to accomplish the task and also help
me to enhance my knowledge understanding of
the project.
S. No. Topics Teacher’s
sign.
1. Introduction to
SQL.
2. Types of SQL
commands.
3. Create a table with
column: Roll no.,
Name, Subject,
Marks.
4. Describe the table
Student.
5. Insert ten records
in Student table.
6. Display the details
of all students.
7. Display the details
of students whose
marks is greater
than 70.
8. Display the details
of students whose
subject is English.
9. Display the details
of students whose
name starts with R.
10. Display the details
of students whose
marks are between
70-90.
11. Display the details
of students whose
marks are either 82
or 92.
12. Display the details
of students whose
subject is either
English or Maths.
13. Create table
student details with
column Roll no.,
Name, Subject,
Marks.
14. Insert 5 details in
the students table.
15. Update the marks
of student to 90
whose roll no. is 3.
16. Delete the column
whose name is
Marks.
17. Add a column whose
name is Mobile no.
and data type is int.
18. Modify the data
type of column
whose name is
subject to char
(20).
19. Modify the table
name to Students.
20. Count all from
student.
21. Count all from
student where
marks are more
than 80.
22. Show count with
group by marks
from Students.
23. Show marks with
having count>2.
24. Show the sum of
marks from table
student.
25. Show the sum of
marks from table
where marks>70.
26. Show the sum of
marks from table
where marks>70
group by marks.
27. Show sum of marks
from table group by
marks which has
sum(marks)>=2.
28. Show the average
marks of table
Student.
29. Show the maximum
marks from table
student.
30. Show the minimum
marks from table
Student.
Introduction to SQL

SQL stands for Structured Query Language.


SQL is used to create, remove, alter the
database and database objects in a database
management system and to store, retrieve,
update the data in a database. SQL is a
standard language for creating, accessing,
manipulating database management system. SQL
works for all modern relational database
management systems, like SQL Server, Oracle,
MySQL, etc.

Types of SQL commands

Different types of SQL commands are:


 DDL: DDL stands for data definition
language. DDL commands are used for
creating and altering the database and
database object in the relational database
management system, like CREATE
DATABASE, CREATE TABLE, ALTER
TABLE, etc. The most used DDL commands
are CREATE, DROP, ALTER, and
TRUNCATE.

 DML: DML stands for data manipulation


language. DML commands are used for
manipulating data in a relational database
management system. DML commands are
used for adding, removing, updating data in
the database system, like INSERT INTO
Table Name, DELETE FROM Table Name,
UPDATE table Name set data, etc. The
most used DML commands are INSERT
INTO, DELETE FROM, UPDATE.

 DQL: DQL stands for the data query


language. DQL command is used for fetching
the data. DQL command is used for
selecting data from the table, view, temp
table, table variable, etc. There is only one
command under DQL which is the SELECT
command.

 DCL: DCL stands for data control language.


DCL commands are used for providing and
taking back the access rights on the
database and database objects. DCL
command used for controlling user’s access
on the data. Most used DCL commands are
GRANT and REVOKE.

 TCL: TCL stands for transaction control


language. TCL commands are used for
handling transactions in the database.
Transactions ensure data integrity in the
multi-user environment. TCL commands can
rollback and commit data modification in the
database. The most used TCL commands are
COMMIT, ROLLBACK, SAVEPOINT, and
SET TRANSACTION.
Practical Questions

Q1. Create table ‘Student_report’ with column :


roll no.,
Name, subject, marks.
Answer:

Q2. Describe table ‘student_report’.


Answer:
Q3. Insert ten records in the student_report
table.
Answer:

Q4. Display the details of all the students.


Answer:
Q5. Display the details of students whose
marks is greater than 70.
Answer:
Q6. Display the details of students whose
subject is English.
Answer:

Q7. Display the details of students whose name


starts with ‘R’.
Answer:

Q8. Display the details of students whose


marks are in between 70-90.
Answer:
Q9. Display the details of students whose
marks are either 82 or 92.
Answer:

Q10. Display the details of students whose


subject is either English or Mathematics.
Answer:
Q11. Create table students with column Roll No.,
Name, Subject, Marks.
Answer:

Q12. Insert 5 records in students table.


Answer:
Q13. Update the marks of the student to 90
whose Roll No is 03.
Answer:

Q14. Delete the column whose name is Marks.


Answer:

Q15. Add a column whose name is Mobile


Number and datatype is int.
Answer:
Q16. Modify the datatype of column whose
name is subject to char(20).
Answer:
Q17. Modify the table name to student’s
Details.
Answer:

Q18. Count all from student.


Answer:
Q19. Count all from students where marks are
more than 80.
Answer:

Q20. Show count with group by marks with


student.
Answer:
Q21. Show marks with having count>2.

Answer:

Q22. Show the sum of marks from table


students.
Answer:

Q23. Show the sum of marks from table where


marks >70.
Answer:
Q24. Show the sum of marks from table where
marks>70 group by marks.
Answer:

Q25. Show sum of marks from table group by


marks which has sum(marks)>=2.
Answer:
Q26. Show the average marks of table
students.
Answer:

Q27. Show the maximum marks from table


students.
Answer:
Q28. Show the minimum marks of the table
Students.
Answer:

You might also like