Considere uma tabela T com a seguinte instância.
f g h
5 2 1
3 2 NULL
4 NULL 1
2 3 2
select max(f) c1,count(*) c2,min(h) c3
from t
produz como resultado
- A c1 c2 c3 ---------- 5 4 1
- B c1 c2 c3 -------------------- 5 4 1 4 4 1
- C c1 c2 c3 ----------------- 5 3 1
- D c1 c2 c3 ------------------- 5 4 NULL
- E c1 c2 c3 ------------------------ 5 NULL NULL