Using CTEs faster than 90%
\n# Write your MySQL query statement below\n\nwith cte1 as (\n    select count(product_key) as \'total_products\' from Product\n), cte2 as (\n    select custome
```\n# Write your MySQL query statement below\n\nwith cte1 as (\n    select count(product_key) as \'total_products\' from Product\n), cte2 as (\n    select customer_id, count(distinct product_key) as \'total\' from Customer\n    group by customer_id\n)\n\nselect customer_id from cte2\nwhere total = (select * from cte1)\n```
[]