Table 3
Table 3
mysql> CREATE TABLE TEACHER (No INT(1), Name VARCHAR(25), Age INT(2),
Department VARCHAR(15), DOJ DATE, Salary INT(7));
Query OK, 0 rows affected, 3 warnings (0.03 sec)
3. To list all the names of the Teachers who are in Maths Department
and Salary is More than 15000.
mysql> SELECT * FROM TEACHER WHERE DEPARTMENT LIKE 'M%' and Salary>
15000;
4. To list the names of all teachers with their date of joining in
ascending Order.
5. To list the report in an order where the list should contain the
Name of the teacher first, after that date of joining and then the
department. Also, the names should be arranged in ascending order.