Last update condition...

Hi All
I need to select the records who's last update date less than ( sysdate-90/1440)
{Query}
SQL> select present.object_type, present.object_id
2 from (select cb2.object_type, cb2.object_id, incident_status_name,
3 incident_severity_name
4 from cs_brm_3d_service_request_v cb2,
5 cs_incidents_all cia,
6 jtf_rs_groups_vl jrgv
7 where cb2.record_status = 'present'
8 and (cb2.incident_id = cia.incident_id)
9 and cb2.incident_severity_name = 'emergency'
10 and cb2.incident_type_name = 'rts customer service request'
11 --and cb2.incident_status_name = 'open'
12 and cia.status_flag = 'o'
13 and cia.owner_group_id = jrgv.group_id
14 and jrgv.group_name in ('rts', 'rtm', 'rtn')
15 and cb2.close_date is null
16 and ( cb2.last_update_date <= (sysdate - 90 / 1440)
17 or exists (
18 select 1
19 from jtf_tasks_b jtb
20 where jtb.source_object_id = cb2.incident_id
21 and jtb.last_update_date <= (sysdate - 90 / 1440)
22 and jtb.last_update_date =
23 (select max (last_update_date)
24 from jtf_tasks_b
25 where source_object_id = cb2.incident_id))
26 or exists (
27 select 1
28 from fnd_attached_documents fad
29 where pk1_value = cb2.incident_id
30 and fad.last_update_date <= (sysdate - 90 / 1440)
31 and fad.last_update_date =
32 (select max (last_update_date)
33 from fnd_attached_documents
34 where pk1_value = cb2.incident_id))
35 or exists (
36 select *
37 from jtf_ih_activities jih
38 where jih.doc_id = cb2.incident_id
39 and jih.last_update_date <= (sysdate - 90 / 1440)
40 and jih.last_update_date =
41 (select max (last_update_date)
42 from jtf_ih_activities
43 where doc_id = cb2.incident_id))
44 )) present;
{end Query}
here tables jtb,fad, jih are may or may not have records..
Could you please suggest me how can i do this..
Thanks
Ravula

Hi Frank, thanks for your quick response..
I need to check jtb,fad,jih tables last update also, these tables may or mayn't have records..
16 and ( cb2.last_update_date <= (sysdate - 90 / 1440)
17 or exists (
18 select 1
19 from jtf_tasks_b jtb
20 where jtb.source_object_id = cb2.incident_id
21 and jtb.last_update_date <= (sysdate - 90 / 1440)
22 and jtb.last_update_date =
23 (select max (last_update_date)
24 from jtf_tasks_b
25 where source_object_id = cb2.incident_id))
26 or exists (
27 select 1
28 from fnd_attached_documents fad
29 where pk1_value = cb2.incident_id
30 and fad.last_update_date <= (sysdate - 90 / 1440)
31 and fad.last_update_date =
32 (select max (last_update_date)
33 from fnd_attached_documents
34 where pk1_value = cb2.incident_id))
35 or exists (
36 select *
37 from jtf_ih_activities jih
38 where jih.doc_id = cb2.incident_id
39 and jih.last_update_date <= (sysdate - 90 / 1440)
40 and jih.last_update_date =
41 (select max (last_update_date)
42 from jtf_ih_activities
43 where doc_id = cb2.incident_id))
Thanks
Ravula

Similar Messages

  • Since the last update to iTunes 11.0.3 (42) the airplay connection is not working properly , keeping breaking up

    since the last update to iTunes 11.0.3 (42) the airplay connection is not working properly , keeping breaking up, while the airplay works fine with my iPad and iPhone. Anyone has experienced the same? any fix available?

    Hi Erdelestre,
    Thanks for visiting Apple Support Communities!
    See this article for some tips about troubleshooting AirPlay:
    Troubleshooting AirPlay and AirPlay Mirroring
    http://support.apple.com/kb/ts4215
    Troubleshooting performance issues with AirPlay or AirPlay Mirroring
    If you are experiencing intermittent playback or significant network lag with AirPlay or AirPlay Mirroring, it could be due to a weak Wi-Fi connection, interference, or the distance between the Wi-Fi router and your iOS device, Apple TV or AirPort Express. Try the following suggestions:
    Ensure that other devices are not trying to stream to the same Apple TV at the same time.
    Turn off Bluetooth on your iOS device by tapping Settings > General > Bluetooth.
    Ensure that your Wi-Fi router is set up with the recommended settings for the best performance.
    Certain external devices, such as microwave ovens and baby monitors, may interfere with a Wi-Fi network. Try moving or disabling these devices.
    If possible, try to locate your Wi-Fi router in the same room as your Apple TV and iPhone/iPad.
    If your wireless and wired networks are the same, try connecting your Apple TV to the router via Ethernet instead of Wi-Fi.
    If the Wi-Fi router has an external antenna, check to see that is it connected properly and in good condition.
    Use the Wi-Fi network troubleshooting guide to resolve interference and other issues.
    Best,
    Jeremy

  • RM06INP0 not update conditions price

    Dear.
    I run report RM06INP0.
    I have verified that this program update the net price of the info-record from the last purchase order.
    But the conditions prices (PB00 and RA00) of the info-record arenu2019t updated.
    Do you help me in order to solve this problem ?
    Thanks in advance.

    RM06INP0 will only take the last PO price if there are no conditions in the info record.
    It will never update conditions.
    It will only update the price field that you see in purchasing data view before you go into the conditions.
    Example:
    if you maintain today (may) a price for May and another one for June  in conditions, then the may price is updated as well in the EINE table (the net price field in info record purchasing data view)
    This EINE table price is not automatically updated with the june price if the date turns into June. You have to run RM06INP0 on June 1st to make this happen.
    This is the prupose of this report.

  • Bluetooth (handsfree) not connecting since the last update

    Hi everyone, the last update has totally ruined my connection to the car. I have a Mazda CX9 , my phone and music connect and music is fine to play but to make and answer calls nothing comes through the car. This is so annoying because now I don't have handsfree!!    
    Is anyone experiencing the same problem. I have reset all network settings, turned phone on and off still nothing.
    HELP!

    Yes, contact Apple Support about that. Since your phone is out of warranty, you'll have to pay the Out-Of-Warranty-Service fee, if you want to get your phone replaced by a working device.
    Out-of-warranty repair service
    If your repair isn’t covered by Apple’s One Year Limited Warranty, AppleCare+, or AppleCare Protection Plan, your iPhone might be eligible for out-of-warranty service. For example, liquid damage isn’t covered by warranty but might be eligible for out-of-warranty service. Some damage isn’t eligible at all, for example if your device has been broken into multiple pieces. See Apple’s Repair Terms and Conditions for complete details.
    Read Apple’s Repair Terms and Conditions
    Model
    Out-of-warranty service fee
    Battery service*
    iPhone 6 Plus
    $329
    $79
    *available only if battery
    fails Apple’s diagnostic test
    iPhone 6
    $299
    iPhone 5s, iPhone 5c, iPhone 5
    $269
    iPhone 4s
    $199
    iPhone 4, iPhone 3GS, iPhone 3G,
    Original iPhone
    $149
    Plus a $6.95 shipping fee, if required. Fees are in USD and exclude local tax. Pricing is for service through Apple. The final service fee we charge will be determined during testing and may be less than the service fee listed above. Pricing and terms vary for service through an Apple Authorized Service Provider.
    copied from Service Answer Center - iPhone

  • After the last update on Mac os 10.9.2 end of April - I

    After the last update on Mac os 10.9.2 end of April - I opened Pagemaker and my whole system crashed after talkign with Apple, I had to erase everything on my hard drive.  I finally got it fixed and re-installed pagemaker cs5 and a few other program that I HAD to have while I was on vacation.  When I got home, I tried installing CC and various programs (pagemaker, indesign, photoshop etc. Had to erase all of the other adobe programs and start from scratch.  Every time I open ANY adobe products all of my "white space" is pink and white vertical striped in EVERY program. Apple mail, contacts etc.  If I completely shut down the computer and then restart everything is fine until I open an adobe product again.  I can't seem to get any help out of Adobe, does any one have any suggestions before I cancel my subscription entirely?
    Thank you in advance,
    Janie

    You may need to ask for help in the individual program forums
    This forum is about the Cloud as a delivery process, not about using individual programs
    If you start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Adobe Bridge CS6 is malfunctioning after the last update raw 8.0.199. Several problems.

    Anything known on this issue? Solutions? Even importing files from memory card is a problem.
    In import window images are not diplayed as images but all the same blue mini images.
    vertical files are changed into landscape positions and more. Mac version.
    cj de vries

    Op 12 apr. 2014, om 19:27 heeft Yammer <[email protected]> het volgende geschreven:
    Re: Adobe Bridge CS6 is malfunctioning after the last update raw 8.0.199. Several problems.
    created by Yammer in Bridge General Discussion - View the full discussion
    http://helpx.adobe.com/bridge/kb/acr-84-bridge-cs6-metadata.html
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6292450#6292450
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6292450#6292450
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6292450#6292450. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Bridge General Discussion at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.
    THNX Problem solved

  • Error in updating condition table 372

    Hello,
    While saving Excise Invoice I am facing error 'Error in updating condition table 372'.Could you please solve this probelm?
    Thanks in Advance

    Dear All,
    I done this--by doing some configuration changes.
    Normally while doing Exports we are tempted to use the same sales area and accordingly we may give the combination of excise grp+series grp+export type in IMG>>>Logistics General>>>India>>>Business transactions>>>Outgoing excise invoices>>>Maintain default excise groups and series groups.
    Once after removing the export type to your sales area combination--system will show this error--and we cannot even post the Excise invoices.(J1IIN)
    I tried in my IDES--that with export type(Ex.Export under Bond)--with this assignment--i am able to post my excise invoices.
    Once after removing this assignment of export type--again i am getting this error.
    Actually i am not even aware why it is happening--almost after two months of struggle--i find this.
    (i feel it is in the same way that we cannot even open/See a sales order by deleting sales group which was created&used previously)
    i am sharing this because somebody may get a little help with my thread.
    Mark this if helpful--there by others can easily find this thread.
    Phanikumar

  • HT5706 How do I update my software on my Apple TV if the television isn't supporting my ATV anymore since the last update. Can I update through iTunes?

    Since I last updated ATV my own tv no longer supports my ATV. On my HDMI channel it is picking up different Hz levels ranging from 18 Hz to 180 Hz when ATV is plugged in. A few times some white lines have appeared on the screen as though it is trying to connect. I have tested a different HDMI chord and that didn't have any effect and I've reset my Wi-if router. My tv still supports my bluray DVD player through the HDMI port. I want to update my ATV as I think that will fix the problem, but I can't see the menu on the tv to do so. Is there any way I can do this via iTunes or iPad?

    What TV are you using? Did you try switching ports?
    Yes, you can connect to iTunes via micro usb. It will restore the system and install the latest firmware.
    http://support.apple.com/kb/ht4367

  • Tabs only open in a new window. Ctl T opens a new window NOT a new tab help-last update this problem started. How do I set FF back to open tabs in 1 window

    Tabs only open in a new window. Ctl T opens a new window NOT a new tab help-last update this problem started 2 days ago. How do I set FF back to open tabs in 1 window?
    There is no plus sign and going into optins and changing settings has not worked. I have uninstall FF and reinstall-keeping my personalization-and that was no help.
    Right clicking on FF Icon to open a new tab, or going up to FF drop down tab and clicking on new tab both do not work.
    Help everything opens a new window not a new tab. there seems to be no way to reset this or to chose a different optin. I just downloaded new tabs at end addon and it didn't do a thing.

    as a first troubleshooting step - does it work like normally when you open & run firefox in [[Safe Mode|safemode]] by pressing the shift key while you open firefox (all other instances have to be closed before)...

  • I also cannot access part of the App Store, I have been trying to down load a magazine app, it has been trying to connect but it has been taking a long time. Also since I did my last update I have lost the ability to face time, I also cannot open iPhoto's

    Since my last update on the newest version iPad I have not been able to download a magazine app that I have a subscription for as well I cannot open iPhoto's or video. When I go into settings and go down to where iTunes Mail etc are it freezes my I pad and I cannot access these. Is there a apple system problem? This has been going on for over a week now.

    For FaceTime try the troubleshooting advice given here:
    http://support.apple.com/kb/ts3367
    Also try resetting your iPad:
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10-15 seconds).
    No data will be lost.

  • Vendor ID, Last Update Date, Invoice Details - Query

    For each Supplier, we would like to know the vendor ID, vendor number, vendor name, vendor site code, Created Date, Last Update Date, last invoice date, last payment date, total number of invoices and total $ amount of invoices for each supplier.
    1) How do i find the last payment date and supplier catagory?
    2) As i have to use sum(invoice_amount), count(invoice_amount), max(payment_date) which point to 3 different tables, i am not sure how to use "group by" based on the Vendor_id alone while i select lot of fields from different table. Could you please help me with this?
    3) Please help me to get this query fixed.

    1) You can get last_payment_date by joining vendor_id to ap_invoices_all and the joining invoice_id with ap_invoice_payments_all to get the max accounting_date (i.e. last payment date)
    2) You are partially right. Invoice_amount and invoice_count are from the same table so you have to join 2 tables. Best way is to do a select in the select.
    e.g SELECT   pv.vendor_name, COUNT (1), SUM (invoice_amount), pv.vendor_id,
             (SELECT MAX (aipa.accounting_date)
                FROM ap_invoice_payments_all aipa, ap_invoices_all aia2
               WHERE aia2.vendor_id = pv.vendor_id
                 AND aia2.invoice_id = aipa.invoice_id) latest_payment
        FROM ap_invoices_all aia, po_vendors pv
       WHERE aia.vendor_id = pv.vendor_id
    GROUP BY pv.vendor_name, pv.vendor_idSandeep Gandhi

  • Ever since the last update, My iTunes continues to quit unexpectedly. It will open for one second and then close. Anyone have a solution for this. Please help.

    Ever since the last update, My iTunes continues to quit unexpectedly. It will open for one second and then close. Anyone have a solution for this. Please help.
    I've tried my best to troubleshoot. . . opening in safe mode nothing seems to work.
    In the problem report, this is the error that stood out:
    Crashed Thread:  8  Dispatch queue: com.apple.iad.iadidmanager
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000090

    Hi there navicin79,
    You may find the troubleshooting steps in the articles below helpful. The first thing I would try is reinstalling iTunes as outlined in the first article.
    Troubleshooting iTunes installation on Mac OS X
    http://support.apple.com/kb/ht2311
    OS X Mavericks: If an app freezes or quits unexpectedly
    http://support.apple.com/kb/PH13975
    -Griff W. 

  • My BBZ10 is not working properly since my last update (OS 10.3.1.224​3

    OK so to start on a positive - I have been the biggest advocate of Blackberry over the last 3 years and have found it a really easy phone to just pick up and use without having to spend much time with user manuals. I started on a Torch and am now using the BB Z10. I found the switch nice and easy & have loved both phones. Up until now, bar the odd little niggle, I have loved using Blackberry.
    I had a notification to update to OS 10.3.1.2243 (no matter how often I read my notification, it would keep changing to unread and start flashing again) which was a nuisance, but I needed to sort through my notifications first and delete FB as the last update I did, restored ALL my FB notifictions since I'd had the phone, so definitely needed to avoid that scenario.
    I could see there had been some changes - layout different, easier to delete messages etc which is great, HOWEVER, I am really disappointed with how it's messed my phone up which I have never had before. There is now a new line in BBM that wasn't there before which covers the message that I am typing, so I can't actually see what I am typing. Every time I unlock my phone, my screen enlarges so I can't really see much on the hub/notification screen and it defaults to the hub which it didn't do before), my ringtone is much softer than it was previously and BBM no longer has a ringtone. Whatsapp, (the current winner of sending messages as I can actually see what I'm typing) actually has a tone but it's really soft, so not only can I not see what I am typing, but I can't hear when I get a message either, even if it's a person who has a specific ringtone for BBM
    My notifications keep freezing (can be when I am on looking at email notifications, Facebook etc) and some of my keys keep freezing when I am trying to type (p is the worst) and is generally making using my BB highly irritating. In fact there are times that I am so irritated that I want to throw my phone on the floor and jump on it. There is nothing wrong with the phone as it worked perfectly prior to the update, so this must be bugs in the new OS which is not good at all as these problems should have been ironed out prior to release.
    Does anyone know me how to fix this or can tell me when the next update is out to fix the bugs? It's all good and well adding all these great features, but if they mess up the basics, none of that is important and if I was nearing the end of my contract, I would definitely not be going Blackberry which is a shame as I've never had an update problem before with BB.
    Solved!
    Go to Solution.

    bunjamin wrote:
    There is now a new line in BBM that wasn't there before which covers the message that I am typing, so I can't actually see what I am typing.
    Hi bunjamin,
    just go to BlackBerry World, and update all your apps including BBM.
    bunjamin wrote:
    Every time I unlock my phone, my screen enlarges so I can't really see much on the hub/notification screen and it defaults to the hub which it didn't do before).
    you can turn off the magnifying glass :
    device settings >> accessibility >> magnify mode >> OFF
    you can deactivate the "reset to Hub view" :
    hub >> overflow (bottom right button) >> Settings >> Display and actions >> Return to Default View When Idle >> OFF
    bunjamin wrote:
    my ringtone is much softer than it was previously
    yes, BlackBerry has acknowledged this bug in this article from the public knowledge base:
    KB36755 After upgrading BlackBerry 10 OS to version 10.3.1 the volume for notifications is noticed to be significantly lower than in the previous version
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Can't access photo library after last update

    I have a Macbook Air 13 and am running the most current Maverick (10.9.5) before Yosemite was released.
    I take all updates as they arrive and are listed by AppStore.
    After the last iPhoto update that came about the time Yosemite arrived I can no longer access my photo Library.
    When opening iPhoto it give me a choice to upgrade my library or quit. So I tried to upgrade and after about 30 seconds iPhoto simply goes away.
    I am traveling and can not do the large Yosemite upgrade, in case that is the issue, but need access to my photos.
    When I plug in and sync my iPhone5S  (which is running the latest updates as well) it seems to sync but I have no way to import the photos.
    I am guessing this is related to the last update but have no idea what to do in order to recover.
    iPhoto 9.6 now show incompatible but I don't recall seeing this earlier.
    I am running iTunes 12.0.1 and it can not access the photo settings. It just sits with the busy spinner.

    iPhoto 9.6 only runs on Yosemite.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • Since the last update for my Iphone 4s i dont get text messages when connected to wifi. my wife is getting them. Imessage is switched off on both phones.

    since the 6. version update. of my Iphone 4s My wife was getting my text messages. I found the problem was caused by Imessage when connected to Wifi. I deactivated Imessage on both phones to solve the problem. I now have updated my Iphone to 6.1.1 and i dont get text messages anymore. I have Imessage deactivated on my phone but my wife is getting my text messages again. my wifes phone was not updated to 6.1.1 because the last update lost all her contacts from her phone and we had to but them back in one by one from the outlook list. Her contact are listed in outlook on a seperate list to mine but we can only get my contacts download to her phone. We use the same laptop to sysc phones.
    My Iphone does not download photos to My Pictures anymore. I have to copy them across to a folder. I cant find where it backs them up to.
    I have lost all confidence in Apple now as i was forced to update to 6.1.1 because of 3G reception issues and not reciving calls and now back to spending several hours trying to fix my phone to recieve a basic text message.

    Are you and your wife sharing apple id?
    If you are that is the reason why she is seeing your imessage.
    On both phone go to settings - message - send&receive - make sure the cell is the default.
    You will have to uncheck or remove the apple id.

Maybe you are looking for

  • ITunes won't sync my music to my iPhone

    I am trying to get music from my iTunes to my iPhone but it won't transfer any of the songs to it. Even if uncheck sync all music and choose exactly what i want it will sync but it wont add or delete anything ive told it too. Ive told it to sync mult

  • Error 150:30 with re-installed software

    I just changed computers and transferred my profile through time machine from a Mac to a new Mac. All my programs were transferred but when I try to launch any product of the suite CS4 I purchased and activated on my previous computer I get a message

  • Permissions issues on views referencing other users [solved]

    Hi, I've hit a (for me) unexplainable problem; Situation: - Table T in schema A - View V in schema B, referencing the table T from schema A (B has SELECT/REFERENCES privileges on table T) - User C gets ORA-01031 when trying to SELECT from view V (C h

  • RMAN Setup in oracle 9.2.0

    Hi, I need to setup a RMAN backup for my company from the scratch. How do i add disk as a device in V$BACKUP_DEVICE table I'm unable to create a channel with alpha numeric name Even if i create a channel with numeric name i'm unable to allocate it, i

  • Updating a Base Table through a View having UNPIVOT function.

    Hi, I have a requirement of updating a Base Table through a View. This View has the query using a UNPIVOT function for displaying the columns of the Base tables in rows. I need to update/insert into/delete the Base Table by accessing the View (The us