Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I’ve never truly used DISTINCT and felt comfortable for using it. Always felt using it revealed a design smell in my query. (Been doing SQL for 30 years and still!)


yes, thats exactly the way I feel. It might be the right answer, but oftentimes its a smell.

Theres very few cases where you shouldnt be doing a group by with aggregates instead. (window functions count here)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: