I am trying to apply collation on a SELECT DISTINCT statement. anyone now how to do this?
One would think that the DISTINCT would detect upper and lower case as different, i.e.. 'Yes' and 'YES'.
But DISTINCT does not appear to be case sensitive. So I believe I need to add COLLATE...
SELECT DISTINCT COLLATE Latin1_General_CS_AS Shrt_Text AS Sht_text
FROM tblMatStrings
Any idea on how to distinguish upper and lower in a SELECT DISTINCT?
distinct
depends on yourdb collation
(or column collation if you manage that at column level) , which is probablyLatin1_General_CI_AS
, orLatin1_General_CI_AI
DISTINCT does not appear to be case sensitive
, and I thought you meantDISTINCT is never Case sensitive
. I may have misunderstood what you where meaning ;)