Click here to Skip to main content
15,899,475 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to select without duplicate .. ??
Posted
Comments
TweakBird 12-Feb-11 7:45am    
P.S: Please try in google.
shakil0304003 12-Feb-11 10:56am    
Use google 1st!!! this is a very simple question!!!

This[^] post may hlp you too.
 
Share this answer
 
Comments
Manfred Rudolf Bihy 12-Feb-11 10:19am    
Nice link! 5+
Abhinav S 12-Feb-11 10:44am    
Thank you.
Use DISTINCT keyword with the column that can have duplicate.

Read details here[^].

Good detail description with example here: SELECT DISTINCT and ORDER BY explained[^]
 
Share this answer
 
v2
Comments
Sandeep Mewara 12-Feb-11 8:10am    
[This reply was given as you asked what if you want to count it]

Use COUNT along with it then.

Refer: http://msdn.microsoft.com/en-us/library/ms175997.aspx
Manfred Rudolf Bihy 12-Feb-11 10:19am    
Agreed! +

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900