SELECT MASTER.pref_cd,
DATA.population
FROM (SELECT pref_cd, SUM(population) AS population
FROM DataTable
GROUP BY pref_cd) DATA RIGHT OUTER JOIN
(SELECT code_value
FROM LookUp
WHERE code_type = 'pref_cd' ) MASTER --インライン・ビューで都道府県マスタを作る
ON DATA.pref_cd = MASTER.pref_cd ;