![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error connecting oracle from inside while loop | Devesh5683 | Shell Programming and Scripting | 3 | 05-13-2008 03:48 AM |
| Ps -ef | grep oracle question | vishalpatel03 | Shell Programming and Scripting | 5 | 02-28-2008 03:09 PM |
| ORACLE RAC ASM disk question | Eronysis | Red Hat | 5 | 02-18-2008 01:50 PM |
| while loop question | stepnkev | Shell Programming and Scripting | 2 | 06-01-2007 10:51 AM |
| Loop question | strike | Shell Programming and Scripting | 18 | 04-13-2005 11:24 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
oracle and loop question
Hi All,
I have a 2 questions; 1 is oracle and another is korn shell say TIME=20060928 desired output: 20060927 say TIME=20061001 DESIRED output: 20060930 If i substract one day from 'TIME' i am looking for previous day. can anyone please suggest me how do i do this is SQL. i have another question; i am trying to write this is korn shell KKK=a,b,c,d,e if [ $KKK == 'a' or $KKK == 'c' or $kkk == 'e' ]; then echo " i am here else echo " i am out" fi the above code that i wrote is not working. can anyone please suggest me thanks mark |
|
||||
|
Date conversion
Thanks a bunch
can anyone also please suggest me for the following this is oracle question say TIME=20060928 desired output: 20060927 say TIME=20061001 DESIRED output: 20060930 If i substract one day from 'TIME' i am looking for previous day. can anyone please suggest me how do i do this is SQL. thanks mark |
|
||||
|
Date conversion
Hi All,
thanks to all of you for your suggestions; this is how I tried SQL> select to_date('20060928', 'YYYYMMDD') - 1 from dual; TO_DATE(' --------- 27-SEP-06 my desired output in this case is 20060927 but here the output is coming as 27-SEP-06. can anyone please suggest me how do I get the output as 20060927 thanks a bunch mark |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|