SELECT DISTINCT( m.pm_name )
FROM prime_minister AS m,
prime_minister AS p
WHERE m.state_born IS NOT NULL
GROUP BY m.pm_name,
m.birth_yr
HAVING m.birth_yr = (SELECT Min(p.birth_yr)
FROM prime_minister)
我的问题如下:
该查询应该会产生第一位出生在澳大利亚某个州的总理......因此WHERE m.state_born IS NOT NULL