count(col) from sometable where col in (select othercol from super_huge_table) ? кроме тупого select count(col), (select count(othercol) from super_huge_table) from sometable where col in (select othercol from super_huge_table)
1к1 или 1к много? если 1к1, то inner join
Обсуждают сегодня