Você está na página 1de 2

CREATE TABLE marksscored

(RollNo NUMBER,
StudentName VARCHAR(15),
English_Mks NUMBER,
Computer_Mks NUMBER,
Science_Mks NUMBER,
Maths_Mks NUMBER);

INSERT INTO marksscored


VALUES(11111,'Abhijeet',33,42,50,26);

INSERT INTO marksscored


VALUES(11112,'Hitesh',26,31,29,11);

INSERT INTO marksscored


VALUES(11113,'Vishal',49,29,6,31);

INSERT INTO marksscored


VALUES(11114,'Dikshant',11,33,23,49);

INSERT INTO marksscored


VALUES(11115,'Achint',29,50,27,16);

INSERT INTO marksscored


VALUES(11116,'Arpit',9,11,26,29);

INSERT INTO marksscored


VALUES(11117,'Kartik',13,16,21,31);

INSERT INTO marksscored


VALUES(11118,'Rajan',23,2,5,8);

INSERT INTO marksscored


VALUES(11119,'Dashrat',33,43,8,16);

INSERT INTO marksscored


VALUES(11110,'Mohit',41,49,30,19);

select *
from marksscored;

select rollno,studentname
from marksscored;

select studentname,English_Mks
from marksscored;

select rollno,studentname
from marksscored
where Computer_mks >25;

select studentname,maths_mks
from marksscored
where maths_mks = 31;

select studentname,english_mks
from marksscored
where english_mks != 41;
select studentname,english_mks
from marksscored
where english_mks <> 41;

select rollno,science_mks
from marksscored
where Science_mks >= 25;

select science_mks,computer_mks,rollno
from marksscored
where maths_mks <= 31;

select studentname
from marksscored
where english_mks > 30 AND science_mks < 30;