我有以下格式的一些数据:
Table: MountHeights
ID | Height| Type | ItemCode | Context
--------------------------------------------
1 | 15 | max | BD1896-1W | exterior
2 | 12 | max | BD1896-1W | insect
3 | 18 | max | BD1896-1W | interior
4 | 13 | max | BD14120-1W | exterior
5 | 10 | max | BD14120-1W | insect
6 | 15 | max | BD14120-1W | interior
每个项目代码有多行。
我在想办法
max(Height)
每个
ItemCode
其中
Type
由于某种原因,我无法完全理解该如何引用表格本身。
我希望结果大致如下:
Results:
max(Height)| ItemCode
---------------------------
18 | BD1896-1W
15 | BD14120-1W
我该怎么做?