SQL Lab Final Programs
SQL Lab Final Programs
17
Command to create database:-
mysql> create database puc;
Query OK, 1 row affected (0.00 sec)
mysql> update student_master set result='pass' where sub1_marks>=35 and sub2_marks>=35 and
sub3_marks>=35 and sub4_marks>=35 and sub5_marks>=35 and sub6_marks>=35;
Query OK, 6 rows affected (0.03 sec)
Rows matched: 6 Changed: 6 Warnings: 0
10. Command to retrieve only student_id and student_name of all the students :-