COMPUTER SCHOOL Practical 11th
COMPUTER SCHOOL Practical 11th
JAYAWANT
PUBLIC SCHOOL
A TERM 2 PRACTICAL RECORD FILE IS SUBMITTED TO DEPART-
MENT OF INFORMATICS PRACTICES FOR THE PARTIAL FULLFILL-
MENT OF CLASS XI TERM 2 EXAMINATION SESSION –2023-24
CERTIFICATE
This is a certification that _________________________has
finished the Practical work in IP (Informatics Practices)
according to the CBSE rules for the Practical Examination
class XI, which will be held in Jayawant Public School in 2023-
24.
USE school;
19. To create student table with the student id, class, section,
gender, name, dob, and marks as attributes where the student id
is the primary key.
—>
CREATE TABLE student (
student_id INT PRIMARY KEY,
class INT,
section CHAR(1),
gender CHAR(1),
name VARCHAR(255),
dob DATE,
marks INT
);
20.To insert the details of at least 10 students in the above table.
—>
INSERT INTO student VALUES
(1, 10, 'A', 'M', 'John Doe', '2000-01-01', 75),
(2, 11, 'B', 'F', 'Jane Smith', '2001-02-15', 60),
(3,10,'A','M','Rajesh Kumar','2009-07-15',85),
(4, 10, 'A', 'F', 'Priya Sharma', '2009-03-20', 90),
(5, 10, 'B', 'M', 'Vikas Singh', '2009-05-10', 80),
(6, 10, 'B', 'F', 'Neha Patel', '2009-07-25', 95),
(7, 9, 'A', 'M', 'Rohan Desai', '2010-02-05', 75),
(8, 9, 'A', 'F', 'Pooja Joshi', '2010-04-15', 70),
(9, 9, 'B', 'M', 'Karan Gupta', '2010-06-30', 65),
(10, 9, 'B', 'F', 'Anjali Verma', '2010-09-10', 60);
21.To insert the details of at least 10 students in the above table.
—>
SELECT * FROM student;
22. To display Rno, Name and Marks of those students who are
scoring marks more than 50.
—>
SELECT student_id, name, marks FROM student WHERE marks >
50;
23. To display Rno, Name, DOB of those students who are born
between '2005-01-01' and '2005-12-31'.
—>
SELECT student_id, name, dob FROM student
WHERE dob BETWEEN '2009-01-01' AND '2009-12-31';
24. To update the marks by 20 of those student who got less than
35 marks.
28. To delete the records of those student who are from class 10.
30. To display the details of all the students who are from 11
class.
->SELECT * FROM student_details
WHERE class = 11;
31. To drop the table “Student_Details”.