Replace date for past 30 days

Hi,
I am using following query and i need to replace my date field value if it's past 30 days, means Check the I_Date, If with in past 30 days put "X".
Query
=====
select l.city, l.state, l.zip, l.loc_name,
     rgc.I_date
from loc l, rgc
where l.id = rgc.id
Ho can I use this logic - Check the I_Date, If with in past 30 days put "X"
I_date should be in format of YYYYMMDDHH24MISS.
Thanks,

If i understood correctly, you can manipulate from this
sql>select * from test_dt;
DT1 DT2 
13-JAN-07  20070113122021 
08-JAN-07  20070108122032 
29-DEC-06  20061229122038 
09-DEC-06  20061209122046 
29-NOV-06  20061129122053 
sql>
update test_dt
set dt2 = 'X'
where to_date(dt2,'yyyymmddhh24miss') between sysdate-30 and sysdate;
3 rows updated.
sql>select * from test_dt;
DT1 DT2
13-JAN-07  X 
08-JAN-07  X 
29-DEC-06  X 
09-DEC-06  20061209122046 
29-NOV-06  20061129122053
jeneesh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Can't get email for past three days on iPad.

    I have an iPad2 and for past three days when I go to Mail app the "checking..." message at the bottom just goes on and on and nothing ever comes in. My Mail on iPhone and my MacBookPro all come in fine.   I have tried changing my Apple I'd password, deleting and restoring my iCloud account on the iPad but nothing seems to resolve this. I'm at a loss for what to try next. Any suggestions?

    Try these things in this order. Try to add apps into folders after each step.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    Reset all settings. Settings>General>Reset>Reset All Settings. If you reset your settings, all of the device settings will have to be entered again, but you will not lose any data or media.

  • Hi Dude,     I ve seen all the threads from first to last even am gonna geta iphone 4s from Thailand. Would like to know which sim will be working fine in chennai as you all are using d phone for past many days???  Is it advisable to buy a phone

    Hi Dude,
    I ve seen all the threads from first to last even am gonna get a iphone 4s from Thailand. Would like to know which sim will be working fine in chennai as you all are using d phone for past many days???  Is it advisable to buy a phone from abroad.

    Thanks for that. Much more constructive than the last comment. It's only the restriction code I can't recall, not the access passcode. So I can currently access the device, just not age restricted content. Does that's make a difference? I also wondered if anyone knew how many attempts you get to try to get it right. Now tried 21 times and so far nothing bad has happened but I am concerned I'll eventually be completely locked out of the device. That doesn't seem in the spirit of things though. Surely it's foreseeable that a child could repeatedly try to guess the code so I can't see that it would be right to lock the device down completely in that circumstance, particularly if the access code is being typed in correctly every time.
    Thanks

  • Hello Vivek here, i was trying to download apps from itunes and i could get the error message as itunes currently not available for past 2 days

    Hello Vivek here, i was trying to download apps from itunes and i could get the error message as itunes currently not available for past 2 days, is there any problem ideally or, please leave a reply
    <Email Edited By Host>

    Hi vivekanandanganesan,
    Thanks for using Apple Support Communities.  This article has some steps you can try if you are unable to connect to the iTunes Store:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Cheers,
    - Ari

  • How to get the date for the last day of a week?

    Is there a easy way to get the date for the last day of week?
    eg a week starts on monday and end on sunday
    January 11, 2005 is the start date for the week
    January 17, 2005 is the end date for the week
    or
    say
    February 26, 2003 is the start date for the week
    March 5, 2003 is the end date for the week
    I just need a simple way of figuring that out....
    I figured out how to get the start date for the week but just can't get the latter..
    formatting of the date is not of a concern.. that I know how to do
    thanks in advance

    How about something like the following?
         Calendar someDay = new GregorianCalendar(2005,0,11);//2005 Jan, 11
         //Note above that January is 0, not 1, as counting starts from 0.
          someDay.add(Calendar.DAY_OF_MONTH,6); //add 6 days
         java.util.Date  lastDayOfWeek = someDay.getTime();
         //If someDay was the start of a week, lastDayOfWeek should now be
         //the last day of that week.
         System.out.println(lastDayOfWeek.toString() );

  • Program to collect user u2013 transaction execution data for past period

    Hi Experts
    We are developing a program to collect user u2013 transaction execution data for past period ( 3 months-1 year ). We are getting required User and Tcode output but unable to find exact count per tcode ( executed by respective user).
    We have following count components available in SAPWL_WORKLOAD_GET_STATISTIC / SWNC_COLLECTOR_GET_AGGREGATES
    COUNT , DCOUNT ( Dialog count for transaction ) , UCOUNT , BCOUNT , ECOUNT, SCOUNT ,LUW_COUNT .
    Out of which  LUW_COUNT -Logical Units of Work comes close to no ot time transaction was executed but itu2019s even not the exact count as one transaction code can have more than one LUW .
    Does anyone have idea about how to get the right count .
    Thanks
    Vani

    If audit log is enabled in SM19 for transaction criteria all, you can get the transaction history executed by the users. But may need more space on audit file system if this is enabled for all users. May be you can archive once in 3 months into ZIP files and can unzip whenever you need.

  • I have an iPhone 4s. Suddnely for past two days, the contact names from my address book are disappeared.  Has anyone came across this issue earlier and know the solution please?

    I have an iPhone 4s. Suddnely for past two days, The contact names from my address book are disappeared.  Has anyone came across this issue earlier and know the solution please?

    You had to have some kudos for the effort put in to your thread as week as the point you make.

  • Bt phone 2.1 all call lists empty for past 10 days...

    I have no record of any calls for past 10 days -all calls  etc message says "all call list empty" yet i know people have called.I am told it is a software problem-my current software version is v1935i006f007 Type A.What is going on

    I have had this happen twice - the main screen shows missed calls but when you look at calls list it is empty. Same software version as you. The only way I have found to get it back to normal is to reset the phone.
    Peter

  • How to find top queries in database for past 15 days period

    I need to know the top resource consuming sql queries in my database (9.2.0.7) for past 15 days.
    please suggest me the method by which i can get the result.
    What i know is we can generate the statspack report and analyze it for top sql statements. but this will give for that particular period of time (betwwen two snaps).
    can we generate a report for past 15 days period. If yes then how much time will it take.
    (my database is up and running since past 6 months)
    thanks in advance :)

    What i know is we can generate the statspack report and analyze it for top sql statements. but this will give for that particular period of time (betwwen two snaps).Does this mean you haven'tbeen running statspack snapshots on a regular basis for the last six months?
    Cheers, APC
    blog: http://radiofreetooting.blogspot.com

  • To find the Memory statistics for past 30 days

    Hi gurus,
    how to find the memory statistics for the past 30 days , i have tried with the options ST06 and ST02  but i cant able to have the data for 30 days.
    can any one help me out  in this reply with solutions rewarded!
    regards,
    S.Rajeshkumar

    Hi Rajesh,
    what do you call system statistics ?
    There are many many statistics in SAP that can be called "system".
    I already gave you the way to look at 3 of them.
    For your information, and it may not please you but it is rude to tell that the problem is urgent for you.
    Guess what : it is not at all urgent for ME as I know how to look at every statistics I would need.
    If your problem is really urgent, don't ask it on volontary answered forums but open a message with SAP support. As you pay for SAP support, you are in a position to tell SAP that your problem is urgent, not with me...
    I choose to answer to questions that
    I find interesting.
    I know something about.
    In that case, I'm very happy to help but I really really don't care about points.
    These points can't be eaten or sold and I already own enough t-shirts !  
    Good luck !
    Olivier

  • Safari "History" missing for past three days ?

    I was  on Safari "History" trying to find some sites I visited on Nov. 30 - Dec.2 and none of that info shows up on "History".  I restarted the computer and now have History from  the past few sites I just visited., but a totaly blank for the past three days and this mroning.  Does anyone have a clue why a few days are missing ?  I'm running OS 10.6.8.
    BTW... I keep trying to edit my "Products" to reflect updated OS below, and all it will let me do is "add" products ??
    Thanks.... Carolyn

    EDIT:.... I neglected to mention that I have all "History " showing  prior to Nov.30.  All that is missing is the three days from Nov 30 through Dec. 2.  
    Sorry for this omission if it is important.   BTW... this is not a BIG DEAL.  I am just baffled as to why three days would suddenly disappear ?
    Thanks... Carolyn

  • No connection to EDGE network for past two days

    Has any other iPhone users lost connection to the EDGE network for the past two days? I lost mine on Sunday night and have not had it back since.
    Has anyone else has this issue?

    Nope, no 'E' in the menu bar. Turned the phone off/on several times to no avail. Now on my AT&T plan I have an additional line added for $9.99 (Family Talk Plan). On Sunday night I added 200 text messages for $5.00 to that other line.
    I am not sure if by doing this my iPhone will lose connection to the EDGE network. That's the only thing I can think of that I could have screwed up myself. But why AT&T would make it so that a customer could do this to themselves is odd.
    Thoughts?

  • Cannot connect to iCloud server/mail/calendar for past 2 days on pc

    For the past 2 days Ive been unable to access my iCloud email and calendar on my PC at work.  As a Legal Assistant, these two apps are critical each workday. Please fix this!!!!!!!!!!

    Hi jenlynnt86!
    Here are two articles that will help you troubleshoot this issue:
    iCloud: Troubleshooting iCloud Mail
    http://support.apple.com/kb/ts4002
    iCloud: Troubleshooting iCloud Calendar
    http://support.apple.com/kb/ts3999
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • Crossed line for past 10 days.NO HELP from BT what...

    I have had a crossed line for the past 10 days. Its actually crossed with a talktalk number with a house on the next street.
    They get our calls i get theirs.
    BT have done nothing.
    What part of  "can you please fix this problem?" do you not understand?

    This is a BT residential customer to customer forum. Your post does not go to BT.
    You need to contact BT and report the problem to them.
    See link for contact details.
    https://bt.custhelp.com/app/contact#h=eyJzdGVwMCI6ImNvbnRhY3RJdGVtTGluazU2MjciLCJzdGVwSWR4IjoxLCJzdG...

  • 4g service has become non-service for past 10 days

    My 4g service which I have been using for the past year became "not available" on my mifi log. I have called V several times and most techs have tried to evade the antenna issue and blame my equipment ETC...
    The transmissions have reverted to 3G for the past 10 days and last night it fell to 1X for a short period of time and then returned to 3G.
    I have a IPAD so just to try and nail down the problem I decided to take my IPAD and MIF router in my truck and turn on logging to map coverage in my area and capture screens of the log as I moved around the area.
    What I found is that I can pick up a 4G signal within 2/10th of a mileonly  in the northeast quadrant of the cells area. I drove around the southern arc of the towers general area and the only transmission was 3g. Even  directly under the tower there was no 4G transmission.
    When I returned to the northeast quadrant 4g came on again.
    I was able to find a person in tech support who asked me to compose a email of the logs with info about when and where etc.
    I sent the complete email  to her and she responded that she had forwarded it to the network dept for analysis.
    Have not heard back yet..
    BTW... THe 3g logs reveal that it is in a special roaming mode 64.... whereas in 4g roaming is zero.....
    So as of now I am not happy at all......

    I sent a another email this am to a contact in tech support re: special roaming code 64. She also responded to my. previous email that I wrote about on the previous post. Here is her response
    I wanted to get back to you and let you know that the ticket that I opened for you on the 5th has made it higher than any other ticket has made it so far due to your screen shots you submitted to me and I was able to add into your ticket.  Our System Performance team is taking a very hard look at your area to see what can be done to help you.  As soon as I hear something, I will let you know.
    I have also requested info on  "what "special roaming" code 64 means"
    This is more then I have had in the past.... Perhaps things may happen ... "I hope"

Maybe you are looking for

  • Logging in SSIS 2012

    Hi , I have been given one task to redesign the existing SSIS Package. In that SSIS package I would like to have logging for each table loading. Table contain below column. TableName StartTime EndTime Inserted Updated Status Please do let me know the

  • Lightroom Profiles for Lumix GX7?

    I'm trying out various programs for RAW processing using my new Lumix GX7. I quite like DXO Optics Pro 9 due to the camera and lens profiles for my equipment. However, it has limited functionality compared to Lightroom 5.6 which I'm also trying. I no

  • What to do if the menu key is not working?

    a month after i got the phone my menu key is not working properly. sometimes it works and sometimes it dont. i already tried restoring my phone and all the the possible troubleshooting but still the same. what do i have to do?. my phone still under w

  • How to calculate AUTOEXTEND ON NEXT in tablespace clause

    hi Please explain How to calculate AUTOEXTEND ON NEXT in tablespace clause. whether AUTOEXTEND ON NEXT 50M or 100M or 500M Thanks

  • OS X Server Deleted My Website and Configuration Changes

    I have a small website I'm using from within my LAN on my MacMini under OS X 10.9.4, using html pages and one Python wsgi script.  I ran into an issue with the databases in SQLite and rebooted.  (I kept getting errors with the database being locked.)