Link to home
Start Free TrialLog in
Avatar of jamie_lynn
jamie_lynn

asked on

Is there a way to case sensitive DISTINCT query?

Hi,
My database is set to be case insensitive.
Is there a way to case sensitive DISTINCT query?
i.e.
My table Employees has columns Name and Email
Name       Login
George   10 AM
Tom        10 AM
Tom        11 AM
Tom        12 PM
TOM      10 AM
TOM      11 AM
TOM      1PM

When i query select distinct name from Employess, the result set is
George, Tom as expected.

How can I query so that result set is George, Tom, TOM?

Thanks
Jamie
Avatar of Jinesh Kamdar
Jinesh Kamdar
Flag of India image

What DB are you using?
ASKER CERTIFIED SOLUTION
Avatar of ursangel
ursangel

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ursangel
ursangel

One easy way.

SELECT   distinct Name COLLATE Latin1_General_CS_AS
FROM      Employees