Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 select distinct doesn't work properly

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-05-06 : 14:33:18
Hal writes "NT 4.0 Server, SP5
MS SQL 7.0
IIS 4.0

In a VBscript page I am using the following select statement:

sql = "select DISTINCT displayName, id, category from prodEOL where product like '%" & search & "%'"

Without the distinct filter it works fine; with the distinct filter and only 2 column names it works fine; with the 3 column names it doesn't create any distinction.

I have spent the afternoon searching many sites, including yours. No luck.

Thanks,
Hal"
   

- Advertisement -