Notification of the decision in that basis

We use SQLPLUS to make our reports, orders wrapped files, basic stuff.

Is it possible to choose a different query according to the day of the week? IE if it's Monday, we want to query base on the weekend, but if it is from Tuesday to Wednesday we just run a query to the previous date.

Something like

IF TO_CHAR (CURRENT_DATE, 'd') = 2
SELECT * FROM TMP_TABLE WHERE XDATE > = CURRENT_DATE-2;
ON THE OTHER
SELECT * FROM TMP_TABLE WHERE XDATE > CURRENT_DATE-1;
END IF

Published by: user8004585 on June 4, 2010 14:19

However, if your query is that simple you can probably just use a query and do the calculation of the date of the request itself:

SELECT *
FROM   TMP_TABLE
WHERE  XDATE >= case to_char(sysdate,'fmDay')
                    when 'Monday' then sysdate - 2
                    else sysdate - 1
                end
;

You can change the CASE statement to fit your needs, it is just an example.

Tags: Database

Similar Questions

  • Just got IPhone 6s and that my texts come through but no notification on the messages app... Any idea on how to fix?

    Just got IPhone 6s and that my texts come through but no notification on the messages app... Any idea on how to fix?

    Is there a Crescent Moon on top of the phone, or next to your contact names?

  • I run the program "TuneUp utilities" and I recently received a notification of the statement that "the BHDrvx64device does not work correctly.

    I run the program "TuneUp utilities" and I recently received a notification of the statement that "the BHDrvx64device does not work correctly" program proposed to update the driver, but there is no provision in any of the dialog boxes.  Windows Help and support says: help for this program was created in Windows Help format, which depends on a feature that is not included in this version of Windows. However, you can download a program that will allow you to view help created in the Windows Help format. All this brought me here, please, how to fix this?

    The last thing you want to do is install and run any third tuneup/Optimizer program.

    In the worst cases of such utilities can cause system failure or program, uninstall it, having restored firstly of the changes he could do.

  • Adobe send me notification on the credit card idle that my license will expire in a few days how I can now do my credit card is active already

    Adobe send me notification on the credit card idle that my license will expire in a few days how I can now do my credit card is active already

    Please see:

    Using creative cloud | 'Renew your membership' window appears when you launch a creative cloud application

    Re: The 10 Questions on the creation of clouds

    Re: "renew your membership".

    Hope this bhelps.

    Concerning

    Megha Rawat

  • How can I adapt the decision XML report that comes with a warning event?

    Through the web determinations warning events can be used.

    To make visible warning events in the response following XML must be added to the XML query:

    < typ:show - events > true < / typ:show - events >



    When a warning event is present in the XML response I also get a report of decision with report-style = 'basic attributes.

    When many warning events are present in the output XML file, this has a negative impact on performance.

    It's the reason I'm looking for a possibility to delete or configure the standard decision report that comes with a warning event.

    Is this possible?

    You can make smaller decision reports by setting the "silent" or "Invisible" option on attributes (see 'Hide information in a record of decision' in http://docs.oracle.com/html/E38269_01/toc.htm the political Oracle © modelling User Guide)

    It's really the only option to change the records of decision.

    See you soon
    Frank

  • If I have not access to the disk partition hard base would impact on the installation of a complete operating system?

    Original title: TPG Server petition.

    I wanted to know if I di not actually have access to the disk partition hard base would impact on the installation of a complete operating system of Windows 7 Home Premium 64-bit? Instead of having a computer with a complete installation of windows mine came with versions of WinPE OEM, NT and MCE. The GPT partition server that I can see is protected. Partial operating systems seem to be installed on network disk Volumes. I think that what I have to do down the disk hard real all delete and start again but I'm having a problem to see what is all about the drive through programs and remove what I find. He also seems to have a certain type of script hidden BIOS more wrinkles to retail and canceling all decisions on versions of the oem .cfg files. She configures and installs the server instead of windows 7 Home Premium 64 bit server software. The installation gives the highest administrative authority to the network administrators who I don't know and have never met and to manage my personal laptop. It creates a serious problem when I want to use my computer for one purpose and that some people I don't know and have never met want me to use my computer for something else.

    Hello

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.

    TechNet Forum
    http://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w7itpro

    Hope this information helps.

  • How to send notifications of the auto

    Is it possible to send automatically updated content notifications. I have a data space and wish to set up a distribution that informs just specific changes without having to subscribe to the item. Tried a workflow, but which requires action on their part (accept, reject, etc.) and I just sent advice changes.

    You're thinking about subscriptions 'base' where the user must subscribe manually.  It would be difficult to force a user to go and actually subscribe.

    What we really need is a subscription "criteria".  Administrators have the ability to create a subscription based on one or more meta attributes and affects users or aliases to receive notification. The user is not required to action anything, they just get a notification.

  • ios10 notifications when the screen locked and I'm on the phone

    This must be a bug. Nothing else makes sense as to why you program this function in iOS10.

    I rely on notifications for my work in the newspaper industry. I use so many apps like Twitter, Facebook, TXT Message, etc.

    When my phone goes into auto-lock mode and goes black, I still get notifications. The screen comes back to life and I get a notification banner for txt, twitter updates and facebook messages. I can't put my phone to stay unlocked for always as the longest option available to me is 5 minutes.

    Here's the big question. When I'm on the phone and the screen goes black, I stop get notifications. I hear the notification sound and the screen lights up to show my wallpaper, but the banner of notification never appears. I have colleagues who have exactly the same problem. If it is not unique to my phone. I confirmed this option to occur in several other people in my office.

    Please tell me that this can be fixed somehow. This is a feature I must have. So and if well I would buy an Android, if this is the new normal in iOS10,

    Tony in Toronto

    Can anyone confirm that this is the same on all iphones after ios10?

  • Can I turn off all notifications except the ringtone?

    Hello

    I keep ring/silent switch from my iPhone on silent all day, as I work in a space where the sound of notifications would be troublesome for others. However, this means that I miss all the phone calls I get, like the vibration is too low to attract my attention.

    Is it possible to silence all notifications except the ringing of the phone? The only way I can think to do is to manually disable sound notifications for each application. I hope that there is an easier way.

    Nancy wrote:

    Hello

    I keep ring/silent switch from my iPhone on silent all day, as I work in a space where the sound of notifications would be troublesome for others. However, this means that I miss all the phone calls I get, like the vibration is too low to attract my attention.

    Is it possible to silence all notifications except the ringing of the phone? The only way I can think to do is to manually disable sound notifications for each application. I hope that there is an easier way.

    No sorry... you should watch in turn on the led flash... This works when your phone is locked, and when you get a notification it flashes... settings - accessibility - led flash for alerts - suite.

  • The Apple AirPort Express Base Station is a good solution?

    I'm moving so leaving the wifi station that Verizon gave me. I think I have the Apple AirPort Express Base Station by station WiFi. I connected an iMac (main computer) MacBook Pro, iPad, iPhone.

    My main question is how this used for the WiFi base station compares to others on the market.

    Thank you!

    Johnny

    The AirPort Express has limited the ability of speed due to its slow and limited capacity wireless Ethernet port due to its very small built in WiFi antennas.

    However, if the plan of your new Internet Service Provider (ISP) is limited to about 50 Mbit/s, then the Express would probably be OK if most wireless devices will be located near the AirPort Express Terminal.

    If the budget allows, an AirPort Extreme is a much better product... up to 10 times the speed of the Express... with additional WiFi antennas located just above the 'tour' to improve performance.

    If your new ISP plan is 100 Mbps or higher, then AirPort Extreme would be a better match.

    If you are considering other routers from other manufacturers... we cannot comment at all on their performance without knowing the number of brand and model of the device you are considering.

  • The Messenger app will be not updated. Stuck on "Waiting."... "and the logo in grey. How can I fix this or return to the previous edition that worked?

    I received a prompt on my Ipod touch 5th generation yesterday, that there is a new update of the Messenger application. So I tried to update, however, the app is now stuck on the phase "Waiting."... "and the logo has been disabled. I still get notifications of new messages from the app, but I can't open. I tried to remove and then reinstall the application but the application did not and the app store think that I always opened it. How can I fix this or return to the previous edition that worked?

    Thank you in advance!

    Hello cfossum,

    Looks like you have problems with a third party on your iPod touch app, since the Messages belongs to iOS and you would receive separate not quickly update.

    The resources below will provide some troubleshooting steps for the problem you are having with the Messenger application.

    If an application you have installed unexpectedly closes, unresponsive, or does not open

    Take care.

  • To access a medical database, a software print said I need now of TLS 1.1.  Printing the program says that if I get the good Lion 10.7.5 OX I should get the Safari 7.0 or higher with him.  I can't find the procedure to download Safari.

    Friends:

    I have a MacBook Pro - 2.3 GHz Intel Core i 5.  MEM at 1333 MHZ 4 GB DDR3.  My MAC OS X LIon is version 10.7.5.  MY current version of Safari is 6.1.6.

    I tried to connect to a medical/pharmacy/base database program and told me that I don't have a high enough version of TLS.  I have 1.0 and 1.1 is required.  The Lion of MAC OX 10.7.5 should have a version of Safari 7 that TLS 1.1 in - level items or can be upgraded to the level of TLS 1.1.  I looked at my app updates and do not find the update of Safari to 7.   No idea where in the system support or at the Apple retail I can get the update?  Thank you.

    Safari 7 is a very outdated version of Safari.

    Update of Safari, the only is to update your Mac to the new OS X El Capitan. Install it the latest Safari version 9.1.2.

    So see if your Mac can run El Capitan > update of OS X El Capitan - Apple Support

    An alternative would be to use the Firefox browser that still supports v10.7 > https://support.mozilla.org/en-US/kb/how-download-and-install-firefox-mac

  • No sound notification since the 2015 upgrade...

    I can choose the individual sounds to the e-mail and messages + but I never hear them when an email or text Message is received. I have not had any problems until an IOS 8 update. I hate that, especially since I paid for one of these sounds. Any suggestions?

    I assume you have checked to see if you have muted notifications: on the iPad side switch - Apple Support ?

    And, if you have no notifications on mute, I tried the standard troubleshooting for example switch mute on / off, soft-reset/reboot your iPad?

  • I've disabled all notifications from the Windows taskbar, and then disappear sound notifications

    I have disabled all notifications from the Windows taskbar, but then the sound notifications disappear. I hear no more beeps. I want only sound notifications. What gives?

    Lol apparently Skype doesn't automatically follow default windows sound output after that I changed it once. Had to change speakers return to Spdif speakers in audio settings. Thanks for the tip.

  • NB200 - Notifications in the system tray area

    Every few seconds I get an annoying popup notification in the system tray area that informs me of the 'blocked events' these are events all IPv4 TCP or UDP. I really want to turn off these notifications, but despite a vast internet searching I can't find out how to do this. I tried the Action Center and tried the obvious firewall settings, but nothing will stop them. I find them very boring.

    I have a 12W NB200 running Windows 7 Home Prmium (a recent update from Windows 7 Starter Edition). -the problem occurs in both versions. Initially, I used installed but uninstalled McAfee security suite and am using 2009 F-secure Internet security suite for which I have a valid license.
    The system is connected wireless to my BT Home hub router and is connected through the homegroup for two PC. The other two computers are connected through ethernet cables to the router and both run on Windows 7 Home Premium with Avira internet security. I don't get the pop-ups on these machines.

    Any help would be greatly appreciated

    AE

    Which program generates alerts - are you sure its f-secure or would it be the widows firewall or mcafee? I don't know anything about f-secure (other than I couldn't find a manual 2009 on their website), but I would say that it will keep a diary of events and when you get close to the 'variant' that appears (and I expect clears) you will also find an option on the display of the event.

    Re my comment about this program is-are you happy that you have removed any trace of mcafee? Have you run msconfig and looked at the services and startup for any trace tabs? Also look in the Manager of tasks for all traces: in the services tab, click description to sort and search for mcafee from the similar description in the process but I think that you would have never had 1 entry of mcafee.

    I think that this should have been the first para. Have you created/modified the firewall rules? The log file must provide the ip address of the event source and which is in the range of ip addresses of your network domestic? and since you are a bt customer internet you have a bt vision pvr and who is the source?

    Post edited by: peterk_1

Maybe you are looking for