Practical List
Practical List
Integrated M.Sc.(IT)
Semester-I
060010110 | CC2 Database Management Systems
Student
Column name Data type Size
Fname Varchar 20
Lname Varchar 20
Contactno Bigint
Date_of_birth Varchar 10
Mailid Varchar 15
Semester-I
060010110 | CC2 Database Management Systems
tblStudent
Column name Data type Size
enro Int
fname Varchar 20
lname varchar 20
city varchar 15
dob date
contactno Bigint 10
14. Update the contact number and date of birth of “Harshil” to “6852987530” and
“06/01/1999” respectively.
15. Find only the date of birth of “Mihir”.
16. Insert the record (100, Rohit, Mehera, Mumbai, 24/03/2003) in the table.
17. Display the list of male students whose last name is “Joshi”.
18. Insert the record (77, Khyati, Parekh, Anand, 18/06/2000, 9000800001) in the table.
19. Show all the details of student whose enrollment number is “102”.
20. Display the list of students whose gender in “NULL”.
21. Complete all details of students, if any record of student the record is incomplete.
22. Remove all the details of students whose city is “Vapi”.
23. Display the list of students only from 6th to 9th record in ascending order.
24. Count number of students in the table.
25. Make the table empty using truncate.
Objective(s) To understand and implement the concept of Data Definition
Language, Data Manipulation Language and Data Query
Language.
Pre-requisites Mathematics for Computer Applications
Duration for Completion 2 Hours
PEO(s) to be achieved To provide quality practical skill of tools and technologies to
solve industry problems.
PO(s) to be achieved Ability to use the techniques, skills and modern tools as
necessary for software development.
CO(s) to be achieved CO7: Use data definition and manipulation statements over one
or more tables using SQL to store and retrieve data.
Solution must contain Query and output
Nature of submission Handwritten
References for solving the --
problem
Post Laboratory questions 1. What is Data Manipulation Language?
2. State the use of Data Control Language.
3. Which commands are provided by DML and DCL
statements?
4. Give the main use of DISTINCT clause with example.
5. Write the syntax for the following to perform the operation
on tables:
a) To arrange records in ascending and descending order.
b) To select records from the beginning.
c) To select records from the end of the result set.
Assessment
Faculty Name and
Signature
Date
Semester-I
060010110 | CC2 Database Management Systems
tblCity
Column name Data type Size Constraints
cid int Primary Key
Auto Increment
Name varchar 20 Not Null
tblStudent_details
Column name Data type Size Constraints
Enro int Primary Key
Fname varchar 20 Not Null
Lname varchar 20 Not Null
Cityid int Foreign Key
Gender char 1 Not Null
Dob date Not Null
Contactno bigint 10 Unique
tblInstitute
Column name Data type Size Constraints
iid int Primary Key
Auto Increment
Name varchar 100 Not Null
tblDepartment
Column name Data type Size Constraints
did int Primary Key
Name varchar 50 Not Null
Instituteid int Foreign Key
Semester-I
060010110 | CC2 Database Management Systems
1. tblClientMaster
2. tblProductMaster
3. SalesOrder
Delivery
Orderno Orderdate Deliverydate Orderstatus Clientno
address
19001 12-Jan-17 Surat 30-Jan-17 In Process 00001
19002 25-Jan-17 Mumbai 12-Feb-17 Cancelled 00002
19003 12-March-18 Bangalore 22-March-18 Delivered 00004
19004 02-May-17 Mangalore 20-May-17 In Process 00003
19005 14-Feb-18 Mangalore 24-Feb-18 Delivered 00005
Semester-I
060010110 | CC2 Database Management Systems
Post Laboratory questions 1. List all the numeric functions and write its use in
one line.
2. State the difference between CEIL() and FLOOR()
with proper example.
3. List at least fifteen character functions supported in
Oracle and MySQL.
4. Write at least two difference between LTRIM() and
LPAD() with example.
5. Write at least two difference between RTRIM() and
RPAD() with example.
6. List at least seven date functions. Write its proper
usage, syntax and example.
7. Write the queries to format dates in following
formats:
a. 06-01-2018
b. 06 Jan 18
c. 06 Jan 2018
Assessment
Faculty Signature and
Date
Semester-I
060010110 | CC2 Database Management Systems
6. Display the maximum salary among Software Engineers, System Analysts and Programmer
Analysts.
7. Display the list of employees working in ‘Technical Publications and Training’ department and
coming from ‘Navsari’.
8. Calculate the average salary of employees who are in ‘Research and development’ department
and coming from ‘Vapi’ and ‘Mumbai’.
9. Assign new designations of employees as ‘Software Engineer’, who are ‘Trainee Engineer’ and
also increase their salary by 10%.
10. Remove all the information of those employees, who are coming from ‘Baroda’.
11. Show the list of employees having highest salary.
12. Find who is having second highest salary.
13. List only the employee’s names with salary and department’s name having more salary than
‘Senior Software Engineer’.
14. Display list of those cities from where, there are no employees.
15. Show the list of employee’s names with department’s name having two or more employees.
Objective(s) To specify conditions in an SQL statement and serve
as conjunctions for multiple conditions in a statement
and create a result that uses descriptive values using
Joins and Sub-Query.
Pre-requisites Mathematics for Computer Applications
Duration for Completion 4 Hours
PEO(s) to be achieved To provide quality practical skill of tools and
technologies to solve industry problems.
PO(s) to be achieved Ability to use the techniques, skills and modern tools
as necessary for software development.
CO(s) to be achieved CO7: Use data definition and manipulation statements
over one or more tables using SQL to store and
retrieve data.
Solution must contain Query and output screen shots
Nature of submission Handwritten
References for solving the problem --
Assessment
Faculty Signature and
Date