Term 2 Practical File Computer Science / Informatics Practices class 12 | SQL commands Class XII 2022

Term 2 Practical File Computer Science /  Informatics Practices class 12 

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

  1. Create a student table with the student id, name, and marks as attributes where the student id is the primary key.
  2. Insert the details of a new student in the above table.
  3. Delete the details of a student in the above table.
  4. Use the select command to get the details of the students with marks more than 80.
  5. 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));

Term 2 Practical File Computer Science /  Informatics Practices class 12

2.Inserting records

Term 2 Practical File Computer Science /  Informatics Practices class 12

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


Post a Comment

If you any doubts, Please let me know

Previous Post Next Post