Scan Aug 24, 2020
Scan Aug 24, 2020
(ii) To count the number of students, who have either accounts or informatics as
subject.
(iv) To insert a new row in the table EXAM:
6,"Mohan"500,"English",73,"Second"
(v) SELECT AVG(Stipend) FROM EXAM WHERE DIVISION="THIRD"
(vi) SELECT COUNT(DISTINCT Subject) FROM EXAM;
(vi) SELECT MIN(Average) FROM EXAM WHERE Subject="English":
30. Consider the following table names EXAM with details of marks. Rite
command of MysQl for (i) to (1V) and Output for (v) to (Vii).
Table: EXAM.
Adno SName Percentage Clsection Stream
RO01 Sushant 90.2 12A Science
RO02 Vaidyanath 80.5 128 Humanities
RO03 Miara 68.9 12B Science
RO04 Niara 96.0 12A Commerce
ROOS Shinjini 88.9 12D Commerce
i) To display all information of the students of humanities in descending order
of percentage.
(i) To display Adno, Name, Percentage and Stream of those students whose
name is less than 6 characters long.
(i) To add another column Bus)Fees with datatype and size as decimal (8,2).
(iv) To increase percentage by 29% of all the humanities students.
(v) SELECT COUNT(") FROM EXAM;
(vi) SELECT Sname, Percentage FROM EXAM WHERE Name LIKE "N%";
(vil) SELECT ROUND(Percentage,0) FROM EXAM WHERE Adno="ROO5";