201126
201126
2)
3)
4)
5)mysql> select max(rent) from propertyforrent where type = "Flat" and city =
"Glasgow";
+-----------+
| max(rent) |
+-----------+
| 450 |
+-----------+
1 row in set (0.00 sec)
6)
8)
9)
10)
11)
mysql> select count(staffNo),position from staff group by position;
+----------------+------------+
| count(staffNo) | position |
+----------------+------------+
| 2 | Assistant |
| 3 | Manager |
| 1 | Supervisor |
+----------------+------------+
3 rows in set (0.08 sec)
12)
13)
14)
15)
mysql> select avg(salary), position from staff having avg(salary) > 18000;
Empty set (0.00 sec)