Re: using distinct on specific columns
- From: "David Portas" <REMOVE_BEFORE_REPLYING_dportas@xxxxxxx>
- Date: Wed, 8 Jun 2005 20:45:24 +0100
Which value would you want to see in ColC in that case? You could use an
aggregate, but it all depends on what result you want:
SELECT cola, colb, MAX(colc) AS colc
FROM YourTable
GROUP BY cola, colb
--
David Portas
SQL Server MVP
--
.
- References:
- using distinct on specific columns
- From: TC
- using distinct on specific columns
- Prev by Date: using distinct on specific columns
- Next by Date: Re: Deploying vb.net english query application
- Previous by thread: using distinct on specific columns
- Next by thread: Re: Deploying vb.net english query application
- Index(es):
Relevant Pages
|
|