Related Posts
Cloud Solutions Architect (Strategy/PreSales)– VMware Cloud on AWS @VMware, Bangalore
As a VMware Cloud Solutions Architect (SA), you will be crafting a solution that may include activities such as running strategy & discovery workshop, conducting client interviews, conducting secondary research and soliciting guidance from VMware Account Team.
Please send your Cvs to dmathur2009@gmail.com
Additional Posts in Data Analytics & Data Science
New to Fishbowl?
unlock all discussions on Fishbowl.



Shouldn't the having be having duplicate_count > 0 since we want it grouped by email and the query already has count(*).
Mentor
Thats the correct answer🙌🏻
Try CTE and try to break down the distinct and group by if affirmation is what you are looking for. Do group by in the first CTE and select distinct in the second. But this is redundant. It depends on the data you are dealing with and the surety you are looking for. Also, if the table is too big in size, use filters.
Mentor
Hmmm! You can do that, but with the given example, a simple solution is expected