Hi I have 2 very similar queries. The difference in their performance, however, is extremely huge. Does anybody have any simple explainations?select a.cityname, a.zipcode, c.cnt, a.statename from zip_city_mapping aright join ( select b.zipcode, count(b.cityname) cnt, b.statename from xzip_state_mapping b group by b.zipcode, statename having count(b.cityname) > 0 -- ZERO here)con a.zipcode = c.zipcode---------------------------------------------------------------------------select a.cityname, a.zipcode, c.cnt, a.statename from zip_city_mapping aright join ( select b.zipcode, count(b.cityname) cnt, b.statename from xzip_state_mapping b group by b.zipcode, statename having count(b.cityname) > 1 -- ONE here)con a.zipcode = c.zipcode