Manoj Bisht

Manoj Bisht

  • NA
  • 145
  • 0

Distinct in SQL Server

Jan 7 2008 4:28 AM
Hello Friends,

I want to get the information of the record(s) where SmallImage(Field Name) must be unique. For this i'm using the following query. Is it right or not if not plz make it correct


Select * From Gallery1 Where SmallImage in (Select Distinct SmallImage From Gallery1 Where Active=1)

Answers (4)