SELECT MIN(CV),MAX(CV),COUNT(CV) FROM A INNER JOIN ( select C1 FROM B where C2 = 2010 AND C3 = 4 )B ON A.C1 = B.C1;