Term 2 Practical File Computer Science / Informatics Practices class 12
Term 2 Practical File Computer Science / Informatics Practices Class 12
Suggested queries by CBSE for Term 2 Practical File
As per the CBSE syllabus , the suggested queries are as follows:
SQL Queries
- Create a student table with the student id, name, and marks as attributes where the student id is the primary key.
- Insert the details of a new student in the above table.
- Delete the details of a student in the above table.
- Use the select command to get the details of the students with marks more than 80.
- Find the min, max, sum, and average of the marks in a student marks table.
1. Create table student
create table student
(studentid int(3) primary key,
name varchar(20) not null,
marks decimal(5,2));
2.Inserting records
3.Deleting records
delete from student where studentid=5;
4.Fetching record with criteria
select * from student where marks>80;
5.Maximum, Minimum, Sum and Average of marks
select max(marks), min(marks), sum(marks) , avg(marks) from student;
Related searches
sql queries for class 12 practical file python
mysql programs for class 12 practical file
sql queries for practical file
sql practical file pdf
python practical programs for class 12 pdf
python programs for class 12 practical file with output pdf
class 12 ip term 2 practical filem, dbms practical file pdf
f