Sep 30, 2004 #1 PatelRam Programmer Aug 20, 2003 87 US Hi, How do I write following code in db2. select to_char(calendar.business_start ,'Mon DD,YYYY') AS mtd_bgn_date from dual Thanks,
Hi, How do I write following code in db2. select to_char(calendar.business_start ,'Mon DD,YYYY') AS mtd_bgn_date from dual Thanks,
Sep 30, 2004 #2 gregsimpson Programmer Apr 18, 2002 521 PatelRam, what are you expecting the resultant output to look like. Incidenttaly SYSIBM.SYSDUMMY1 is a good equivalent for the Oracle DUAL table. Cheers Greg Upvote 0 Downvote
PatelRam, what are you expecting the resultant output to look like. Incidenttaly SYSIBM.SYSDUMMY1 is a good equivalent for the Oracle DUAL table. Cheers Greg
Sep 30, 2004 Thread starter #3 PatelRam Programmer Aug 20, 2003 87 US Greg, thanks for the reply. My question is how do I convert date into 'Mon DD, YYYY' format. Oracle: to_char(calendar.business_start ,'Mon DD,YYYY') Db2 : ?? thanks, ram Upvote 0 Downvote
Greg, thanks for the reply. My question is how do I convert date into 'Mon DD, YYYY' format. Oracle: to_char(calendar.business_start ,'Mon DD,YYYY') Db2 : ?? thanks, ram
Sep 30, 2004 #4 gregsimpson Programmer Apr 18, 2002 521 Ram, I've got something along those lines here select char(dayofweek(current timestamp)),' ',char(monthname(current timestamp)),' ',char(year(current timestamp)) from sysibm.sysdummy1 Cheers Greg Upvote 0 Downvote
Ram, I've got something along those lines here select char(dayofweek(current timestamp)),' ',char(monthname(current timestamp)),' ',char(year(current timestamp)) from sysibm.sysdummy1 Cheers Greg