Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to construct a query on this
Message
 
 
To
08/05/2008 01:05:26
Jeffrey Ang
JGA Software Inc.
Davao, Philippines
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01315788
Message ID:
01315829
Views:
14
If you want to select more fields than you showed here, then you can use derived tables, e.g.
select myTable.* from myTable inner join 
(select min(ID) as MinID, value from myTable group by value) MinSQL 
on MyTable.ID = MinSQL.MinID
>To all sql guru's pls. help on this query. I'd like to eliminate those duplicate values. I want to remain only those 1st occurences.
>
>ID Value
>
>1 001
>2 001
>3 001
>4 002
>5 002
>6 003
>7 004
>8 004
>9 004
>10 004
>
>The result would be like this
>
>ID Value
>
>1 001
>4 002
>6 003
>7 004
>
>
>Appreciate your help.
>
>Tnx in advance.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform