|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Trying to retrieve info from db- Not sure how to label this question
I have a table that has a column with multiple manufacturer names. Many rows are identical manufacturers. I want to create an asp page that shows only one instance of a particular manufacturer.
Basically if I have 30 entries of Manufacturer 1, 40 entries of Manufacturer 2, etc. I only want to see Manufacturer 1 and Manufacturer 2 once in the display, not as many times as it is listed in the column. Is this an ASP or SQL question? Basically I know the beginning should look like this: Code:
SELECT Col1, Col2 FROM dbo.tbl_Myinfo ORDER BY Col2 But that is about the extent of where I know what to do. I wanted to create this so I can list the manufacturers that I currently have loaded in my SQL table/ available for more detailed searching. |
|
#2
|
|||
|
|||
|
Code:
select distinct manufacturer from t order by manufacturer |
|
#3
|
|||
|
|||
|
Worked like a charm-THANK YOU
Quote:
|
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > Trying to retrieve info from db- Not sure how to label this question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|