Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

SQL Syntax: How to force case sensitive query?

I want to get four query results, not two:

select count(*) as SecondYearInterestIsNo  from APSecondYear where SecondYearInterest='No'

select count(*) as SecondYearInterestIsNO  from APSecondYear where SecondYearInterest='NO'

select count(*) as SecondYearInterestIsYes  from APSecondYear where SecondYearInterest='Yes'

select count(*) as SecondYearInterestIsYES  from APSecondYear where SecondYearInterest='YES'

How do I make this query CASE SENSITIVE?

I want to differentiate between No and NO.

User generated image
Thanks
ASKER CERTIFIED SOLUTION
Avatar of Vitor Montalvão
Vitor Montalvão
Flag of Switzerland image

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 curiouswebster

ASKER

Perfect!