Question
SQL: Select DISTINCT only on certain fields?
This is an odd question. Partly because it's late and I'm not
thinking
straight, but...
I have a query consisting of 9 joins. It works fine.
However, I've encountered a bit of an issue with my data that would much
easier to fix via a query than actually fixing the data (as the data fix
would require committee approvals and the like...)
In a nutshell, my query is trying to return a DISTINCT set of recrods.
The catch is that my records are ALMOST distrinct, except for one field. Is
there a way to use the distinct command in a way the excludes specific
fields?
-Darrel
straight, but...
I have a query consisting of 9 joins. It works fine.
However, I've encountered a bit of an issue with my data that would much
easier to fix via a query than actually fixing the data (as the data fix
would require committee approvals and the like...)
In a nutshell, my query is trying to return a DISTINCT set of recrods.
The catch is that my records are ALMOST distrinct, except for one field. Is
there a way to use the distinct command in a way the excludes specific
fields?
-Darrel
