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 

Selection criteria and to build a query.

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


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

PostPosted: Thu Jul 01, 2004 10:33 am    Post subject: Reply with quote

Ravi,

Try this.


[code:1:ed2fa80696]
SELECT SUBSTR(CHAR_ID,1,1) AS CHAR_ID
,LAST_UPD_TS
FROM TABLE
WHERE CHAR_ID = 'A'
UNION
SELECT SUBSTR(CHAR_ID,1,1)
,CASE CHAR_ID
WHEN 'CC' THEN DATE(LAST_UPD_TS + 1 DAY)
ELSE LAST_UPD_TS
END
FROM TABLE
WHERE CHAR_ID
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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