Queries that are expressed as a single SQL statement make more efficient use of the optimizer than queries that are expressed in two or more SQL statements.
select dt_1.* from (select sum(total_sales) from titles_west group by total_sales) dt_1(sales_sum), (select sum(total_sales) from titles_east group by total_sales) dt_2(sales_sum) where dt_1.sales_sum = dt_2.sales_sum