jdgonzalez
Programmer
I'm hoping someone can answer this for me. Which is worse to use: group by or distinct? I took a peek at the execution plans for both and they are identical. In this example, group by and distinct serve the same purpose, to remove dupes from a dataset. Does SQL Server know this and just apply the same logic internally?
It's just something I thought of earlier today that I realized I didn't know the answer to.
It's just something I thought of earlier today that I realized I didn't know the answer to.