Program 2
Program 2
-> (Ad_No varchar(30) primary key not null,Name varchar(30) not null,Percentage
float(20),ClSection varchar (30),Stream varchar(30));
Query OK, 0 rows affected (0.06 sec)
mysql> select * from exam where stream = 'Humanities' order by percentage desc;
+-------+------------+------------+-----------+------------+
| Ad_No | Name | Percentage | ClSection | Stream |
+-------+------------+------------+-----------+------------+
| R002 | Vaidyanath | 80.5 | 12_B | Humanities |
+-------+------------+------------+-----------+------------+
1 row in set (0.00 sec)
2. To display Ad_No, name, percentage & stream whose name is less than 6 characters
long