MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to differ Case Sensitive in select statement?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
schintala
Beginner


Joined: 18 May 2005
Posts: 108
Topics: 31
Location: USA

PostPosted: Fri Jun 17, 2005 9:16 am    Post subject: How to differ Case Sensitive in select statement? Reply with quote

Hi,
When I browse the below query on our DB through QMF/SPUFI I am not able to retrieve the data even though we have matched rows in table.

SELECT * FROM IDTOUT01.ITOUIN32
WHERE OUTCAT = 'PROBLEM SEVERITY' AND OUTLABEL = 'BREAKING RULES';

In Table ITOUIN32 data under OUTLABEL column stored in lower case letters. How can I retrieve the data?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12382
Topics: 75
Location: San Jose

PostPosted: Fri Jun 17, 2005 9:54 am    Post subject: Reply with quote

Schintala,

You can use the scalar function uppercase (UCASE) to get the desired results.

Code:

SELECT *
  FROM IDTOUT01.ITOUIN32
 WHERE UCASE(OUTCAT)   = 'PROBLEM SEVERITY'
   AND UCASE(OUTLABEL) = 'BREAKING RULES'
;


Check this links for a detailed explanation of LCASE and UCASE

LCASE

UCASE

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
schintala
Beginner


Joined: 18 May 2005
Posts: 108
Topics: 31
Location: USA

PostPosted: Fri Jun 17, 2005 9:58 am    Post subject: Reply with quote

Hi Kolusu,
Thank you very much. It worked. I was using LOWER function in select.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group