all groups > sql server data mining > december 2003 >
You're in the

sql server data mining

group:

DISTINCT and Duplicates


DISTINCT and Duplicates George Antoniou
12/5/2003 6:17:00 AM
sql server data mining:
Hello!
I have to make a query,that combines two views,and gives
me result about IDs and Origin!
However,one of my two views has for one ID number,2
different Origins!
As a result,when I run my query,I get a number of results
that is far greater than it should be, because it returns
twice information about one ID.
For example,I have..
ID Origin
CA150 Milk
CA150 Oil
…
and when I want in my final query to have all IDs with
their Origins,I have duplicate values!
Do you know how I can fix that?DISTINCT doesn’t work,and
I’m trying UNION,but I haven’t made it so far!
Thank you very much for your help!
George Antoniou
Re: DISTINCT and Duplicates Vishal Parkar
12/6/2003 1:47:10 AM
George,

can you post table structure/sample records and expected result set that you are
looking for.

--
- Vishal


AddThis Social Bookmark Button