|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
List unique values from column
I'm trying to figure out a SQL command that is like
Select ColumnX from TableX except I just want the list of values in ColumnX, so if ColumnX has multiple entries with values "X" and multiple entries with values "Y", the Select command will only return "X" and "Y". Does that make sense??? Any help is appreciated. |
|
#2
|
|||
|
|||
|
Code:
Select Distinct ColumnX from TableX |
|
#3
|
|||
|
|||
|
Perfect! Thank you
|
| Viewing: Dev Shed Forums > Databases > MS SQL Development > List unique values from column |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|