Ass 2 A
Ass 2 A
Solving Queries:-
1.What is maximum and minimum salary?
5.Find different locations from where employees belong to and also change the
city of Amit to Nashik.
9.Find the address from where employees are belonging as well as where
projects are going on.
mysql> select max(Salary) from Employee where City='Nashik' and Salary > 26000;
+-------------+
| max(Salary) |
+-------------+
| 35000 |
+-------------+
1 row in set (0.00 sec)
mysql> select max(Salary) from Employee where City='Pune' and Salary > 26000;
+-------------+
| max(Salary) |
+-------------+
| NULL |
+-------------+
1 row in set (0.00 sec)
mysql> select max(Salary) from Employee where City='Mumbai' and Salary > 26000;
+-------------+
| max(Salary) |
+-------------+
| NULL |
+-------------+
1 row in set (0.00 sec)