View Single Post
  #3 (permalink)  
Old 09-08-2006, 08:27 AM
Dimitar
 
Posts: n/a
Default MS SQL answer. Re: query containing entries that begin with same 3 letters as at least one other entry?

Not really an answer, but perhaps a hint: check the manual for whether the is supported by MS SQL. If so it would replace the rightmost select with the group by and having clause, like this
[sql]
... unique (select substring(player from 1 for 3) from scores)
[/sql].
Hopefully it will be faster.
Edit/Delete Message Reply With Quote