BSC CS-lab-2023
BSC CS-lab-2023
SET – 1
1. Create a student table which contains the following columns such as Rollno, Name,
Class, Dept, Year.
(a) Rollno needs to be set as Primary Key
(b) Display the structure of the table
(c) Add one more column to the table
(d) Delete one column from the table
(50
Marks)
2. Write a PL/SQL program to calculate the Electricity Bill using Cursors. (50
Marks)
Bishop Heber College (Autonomous), Tiruchirappalli-620 017
DEPARTMENT OF COMPUTER SCIENCE
End Semester Practical Examination - APRIL – 2023
Semester-IV
Class: II B.Sc. CS AIDED Course Code: U21CS4P4
SET – 2
1. Create a student table which contains the following columns such as Rollno, Name,
Class, Dept, Year.
(a) Rollno needs to be set as Primary Key
(b) Insert atleast 5 records into the table
(c) Delete all the student records of those who are doing third year
(d) Do some changes on a particular record of the table
(e) Delete one column from the table (50 Marks)
SET – 3
1. Create an Employee table which contains the following columns such as Empno,
EmpName, Dept, Salary and Date of Joining.
(a) Empno needs to be set as Primary Key
(b) Insert atleast 5 records into the table
(c) Delete all the employee records whose salary between 8000 and 10000
rupees
(d) Change the salary of a particular employee who belongs to production
department
(e) Delete some records from the table
(50
Marks)
2. Write a PL/SQL program to implement the Trigger for displaying the grade of a
student.
(50
Marks)
Bishop Heber College (Autonomous), Tiruchirappalli-620 017
DEPARTMENT OF COMPUTER SCIENCE
End Semester Practical Examination - APRIL – 2023
Class: II B.Sc. CS AIDED Semester-IV Course Code: U21CS4P4
SET – 4
SET – 5
2. Write a PL/SQL program to find the minimum of three numbers using procedures.
(50
Marks)
Bishop Heber College (Autonomous), Tiruchirappalli-620 017
DEPARTMENT OF COMPUTER SCIENCE
End Semester Practical Examination - APRIL – 2023
Class: II B.Sc. CS AIDED Semester-IV Course Code: U21CS4P4
SET – 6
2. Write a PL/SQL program for updating salary using triggers and procedures
(50
Marks)
Bishop Heber College (Autonomous), Tiruchirappalli-620 017
DEPARTMENT OF COMPUTER SCIENCE
End Semester Practical Examination - APRIL – 2023
Class: II B.Sc. CS AIDED Semester-IV Course Code: U21CS4P4
SET – 7
1. (a) Creating, Updating and inserting into databases using simple queries.
(b) Use Select statement and perform
(i) AND, OR, NOT operators, WHERE clause
(ii) UNION, INTERSECTION, MINUS
(iii) Sorting and Grouping (50 Marks)
SET – 8
2. Write a PL/SQL program to for Bonus calculation using Procedures. (50 Marks)
Bishop Heber College (Autonomous), Tiruchirappalli-620 017
DEPARTMENT OF COMPUTER SCIENCE
End Semester Practical Examination - MARCH – 2023
Class: II B.Sc. CS AIDED Semester-IV Course Code: U21CS4P4
SET – 9
(50
Marks)
Bishop Heber College (Autonomous), Tiruchirappalli-620 017
DEPARTMENT OF COMPUTER SCIENCE
End Semester Practical Examination - MARCH – 2023
Class: II B.Sc. CS AIDED Semester-IV Course Code: U21CS4P4
SET – 10
SET – 11
1. Create a student table which contains the following columns such as Rollno, Name,
Class, Dept, Year.
(i) Rollno needs to be set as Primary Key
(ii) Insert atleast 5 records into the table
(iii) Delete all the student records of those who are doing third year
(iv) Do some changes on a particular record of the table
(v) Delete one column from the table
(50 Marks)
2. Write a PL/SQL program to calculate the Electricity Bill using Cursors.
(50 Marks)
Bishop Heber College (Autonomous), Tiruchirappalli-620 017
DEPARTMENT OF COMPUTER SCIENCE
End Semester Practical Examination – MARCH - 2023
Class: II B.Sc. CS AIDED Semester-IV Course Code: U21CS4P4
SET – 12
1. Create a student table which contains the following columns such as Rollno, Name,
Class, Dept, Year.
(a) Rollno needs to be set as Primary Key
(b) Display the structure of the table
(c) Add one more column to the table
(d) Delete one column from the table (50 Marks)
2. Write a PL/SQL program to find the minimum of three numbers using procedures.
(50 Marks)
Bishop Heber College (Autonomous), Tiruchirappalli-620 017
DEPARTMENT OF COMPUTER SCIENCE
End Semester Practical Examination - MARCH – 2023
Class: II B.Sc. CS AIDED Semester-IV Course Code: U21CS4P4
SET – 13
1. Create an Employee table which contains the following columns such as Empno,
EmpName, Dept, Salary and Date of Joining.
(a) Empno needs to be set as Primary Key
(b) Insert atleast 5 records into the table
(c) Delete all the employee records whose salary between 8000 and 10000
rupees
(d) Change the salary of a particular employee who belongs to production
department
(e) Delete some records from the table (50 Marks)
2. Write a PL/SQL program for updating salary using triggers and procedures
(50 Marks)
Bishop Heber College (Autonomous), Tiruchirappalli-620 017
DEPARTMENT OF COMPUTER SCIENCE
End Semester Practical Examination - MARCH – 2023
Class: II B.Sc. CS AIDED Semester-IV Course Code: U21CS4P4
SET – 14
(i) Alter the table mark_details to add a column average with data type as long.
(ii) Display the months between the DOB and till date.
(iii) Using alter command drop the column address from the table stu_details.
(50 Marks)
2. Write a PL/SQL program to find the minimum of three numbers using procedures.
(50 Marks)
Bishop Heber College (Autonomous), Tiruchirappalli-620 017
DEPARTMENT OF COMPUTER SCIENCE
End Semester Practical Examination - MARCH – 2023
Class: II B.Sc. CS AIDED Semester-IV Course Code: U21CS4P4
SET – 15