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
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
What DB are you using?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
One easy way.
SELECT distinct Name COLLATE Latin1_General_CS_AS
FROM Employees
SELECT distinct Name COLLATE Latin1_General_CS_AS
FROM Employees