Urgent please - need help

Hi friends

I have a requirement for an email alert, I wrote a sql script in this
I need to trigger an alert and prevent an email when a command in the importing section to display correction for more than 3 hours.

in my table, I have a date in the created column
so I used a condition in where clause

(sysdate-created_date) * 1440 > 180 / / to my point of view, this condition he's import the data from the database which is > 3 hours

(1) sysdate will always be greater then created_date
(2) let assume that sysdate and creation_date is equal then 0 say that his is 1.
1 * 1440 > 180 is always true? is it good?
(3) if we subract 2 date component we'll get the result in days only 1 day = 24 hours?

My doubts
If an order is to enter just 1 hour before... that the order does not appear in the alert since the fire of shoud alert only for the order which is in DB > 3 hours

So should what logic I use? It is this logic is good (sysdate-created_date) * 1440 > 180
or should I change the logic please notify

Thank you
AT

AT wrote:
Hi Bravid

Can u please send me the syntax please

Thank you
AT

I already posted the syntax in my previous post. Here it is once again just in case you missed it

WHERE
    created_date <= SYSDATE - NUMTODSINTERVAL(3,'HOUR')

Tags: Database

Similar Questions

  • URGENT! need help DRIVER HP Pavilion P6230L for Windows XP Pro

    Dear helpdesk,

    URGENT! need help DRIVER HP Pavilion P6230L for Windows XP Pro...

    Send me the link for the driver or compatible.

    or email to: [email removed for privacy]

    Kind regards

    MRZ

    Message edited by SandyD on 25/11/2009 14:01

    Thank you

    but I can't download link for LAN

    FTP://ftp.HP.com/pub/softlib/software10/COL30407/PV-75371-1/sp44423.exe is not available.

    and I need driver motherboard chipset

    Help me.

    MRZ

  • Please need help for UPGRADING

    Hi all

    I'm doing a simple UPDATE and I get the following error "ORA-01732: non-legal data manipulation operation on this point of view." I removed the substr and tried and always had the same error:

    My UPDATE statement:

    UPDATE

    (SELECT DISTINCT T1.*

    FROM TABLE1, TABLE2 T2 T1

    WHERE T1.SR_NUMBER = T2.SR_NUMBER

    AND T2. TREATMENT = 'Y '.

    AND T1.IS_UPDATE = 'F'

    AND T1. CLOSED IS NULL

    and substr (t1.sr_number, 1, 2) = '1'-

    )

    SET DATE_DE_MODIFICATION = SYSDATE,

    CLOSED = SYSDATE,

    STATUS = "closed."

    DATE_OF_TRANSFER = SYSDATE,

    IS_UPDATE = 'T.',

    SUCCESS = 'N'

    where rownum < = 500

    Please need some suggestions.

    Thank you

    2932016 wrote:

    Thanks John,

    The UPDATE did not work. I update the table TABLE1 can have multiple lines with the same SR_NUMBER, where as the TABLE2 SR_NUMBER has only one and that's the reason why I join me in the first place.

    What do you think average surroundings did not work?

    The fact that table1 can have several lines with the same sr_number is not material, only this table2 has one line for each value of sr_number.  If sr_number is not declared as unique then you cannot update the join, however, if you know that it is unique, so you can update as I previously suggested.  In a simplified test case, I did:

    create table table1)

    sr_number varchar2 (10),

    closing date,

    is_update varchar2 (1));

    create the table2 table)

    sr_number varchar2 (10),

    VARCHAR2 (1)) transformed;

    Then filled two tables giving:

    SQL > select * from table1;

    CLOSED SR_NUMBER I HAVE

    ---------- ----------- -

    1-001 JANUARY 1ST 2016 T

    1 001 F

    1-002 F

    1-002 F

    1-003 F

    2-004 F

    SQL > select * from table2;

    SR_NUMBER P

    ---------- -

    Y 1-001

    Y 1-002

    N 1-003

    2-004 Y

    Do an update that is similar to what I suggested earlier:

    SQL > update table1

    2 set closed = sysdate,

    3 't =' is_update

    4 where sr_number in (select sr_number

    5 from table2

    6 where changed = 'Y') and

    7 is_update = 'F' and

    8 closed is zero and

    substr (sr_number, 1, 2) 9 = '1'-;

    3 lines to date.

    SQL > select * from table1;

    CLOSED SR_NUMBER I HAVE

    ---------- ----------- -

    1-001 JANUARY 1ST 2016 T

    1-001 23 JANUARY 2016 T

    1-002 23 JANUARY 2016 T

    1-002 23 JANUARY 2016 T

    1-003 F

    2-004 F

    SQL > rollback;

    Complete restoration.

    Which seems to be what you are looking for, unless I'm missing something.

    Without the unique statement on the table2 the join is not editable:

    SQL > update (select t1.*

    2 from table1, table2 t2 t1

    3 where t1.sr_number = t2.sr_number

    4 and t2.processed = 'Y'

    5 and t1.is_update = 'F'

    6 and t1.closed is set to null

    7 and substr (t1.sr_number, 1, 2) = '1'-)

    8 the value closed = sysdate,.

    9 = 't' is_update;

    the value closed = sysdate,

    *

    ERROR on line 8:

    ORA-01779: cannot modify a column that is mapped to a table not preserved key

    By adding a unique to table2 constraint, the view of join becomes editable:

    SQL > alter table table2 add constraint table2_uk unique (sr_number);

    Modified table.

    SQL > update (select t1.*

    2 from table1, table2 t2 t1

    3 where t1.sr_number = t2.sr_number

    4 and t2.processed = 'Y'

    5 and t1.is_update = 'F'

    6 and t1.closed is set to null

    7 and substr (t1.sr_number, 1, 2) = '1'-)

    8 the value closed = sysdate,.

    9 = 't' is_update;

    3 lines to date.

    SQL > select * from table1;

    CLOSED SR_NUMBER I HAVE

    ---------- ----------- -

    1-001 JANUARY 1ST 2016 T

    1-001 23 JANUARY 2016 T

    1-002 23 JANUARY 2016 T

    1-002 23 JANUARY 2016 T

    1-003 F

    2-004 F

    SQL > rollback;

    Complete restoration.

    However, adding the separate your validated statement gives:

    SQL > update select (distinct t1.*

    2 from table1, table2 t2 t1

    3 where t1.sr_number = t2.sr_number

    4 and t2.processed = 'Y'

    5 and t1.is_update = 'F'

    6 and t1.closed is set to null

    7 and substr (t1.sr_number, 1, 2) = '1'-)

    8 the value closed = sysdate,.

    9 = 't' is_update

    10.

    Update select (distinct t1.*

    *

    ERROR on line 1:

    ORA-01732: operation non-legal data manipulation on this point of view

    John

  • Please, need help printer. Nothing to do with Security Update 2009-001.

    I need help, and looking for the forums just makes me worse headache. I need to use passthrough printing, but the Mac printer does not in the comments.

    Details: OS X 10.5.6 Fusion 2.0.2. Guest is Windows 2000 SP4. Security Update 2009 - 001 has not been applied.

    The printer is a HP PhotoSmart C4480 printer attached to the Mac via USB.

    In order to avoid the obvious questions:

    Passthrough fusion printer is active. Become disabled as some users report. The Serial Port is present and connected. In OS X printer sharing is enabled in the world and for this printer (but my impression is that it should not be).

    I confirmed that the printer works from OS X. And he is listed in the merger USB menu.

    The process of Thinprint TPAutoConn * are underway on the guest. COM1 and COM2 are both present.

    The user can not use the old printer sharing solution because there is no Windows 2000 for this printer drivers. The VM is totally dependent on the system of Thinprint, and I never put in place before. Have never seen a working configuration. Don't know about its configuration beyond what is in the VMX file and upgrade manual.

    There are merger Console messages that say "no printer configured or unavailable." I think it's the key to the problem... but I don't know what to do about this.

    Help...

    Fuzzy-wan says:

    Pat Lee says:

    We have designed this feature to Windows XP and later versions. So it will not work on Windows 2000.

    Hmmm. Woody didn't say exactly if the printer actually prints

    Well I wouldn't went all the trouble to clean the building a Machine virtual Windows 2000 Pro SP4 with VMware Tools installed and printers enabled for the Virtual Machine settings and took all the dialog boxes and to make a film of the if I did had not bother to actually check and see if she would print!

    Find attached an image of a Windows 2000 printer print Test and note the relevant information.

    Computer name: W2KVM

    Name of the printer: HP LaserJet 4050 on MacBook Pro

    Printer model: TP output gateway PS

    Support: Yes

    Port name (s): THIRD:

    Note: because the printer is a B & W LaserJet I guess that the "support: Yes", it's that the "printer model: TP output gateway PS ' supports color and will therefore work with color printers as well.

  • Win XP and Win 7 formatting issues! PLEASE, NEED HELP AS SOON AS POSSIBLE THANK YOU!

    OK, I made the mistake to download Win 7 Ultimate and install it on my Dell on XP. Bad idea. It could not pass the Windows Genuine Advantage, that it crashed and do not reboot Windows 7. I ran my backup on Win XP with SP3, install (XP) under C:\WINDOWS.old and kept the Win 7 files that I needed, my personal documents. Win 7 was in C:\Windows. I had my documents Ok, but how do I get rid of Win 7 files? Format? There is no dual boot option, such as Win 7 crashed my Dell and are basically sitting there too much space. I ran XP after installing 7. If I format, it will have negative effects on my computer? If it screws with my Dell somehow? ANSWER PLEASE THANK YOU SOON VERY IMPORTANT!

    System information:

    Dell OptiPlex GX280

    32 GB hard drive

    512 MB of RAM

    Operating system: Win XP with SP3. I want to get rid of Win 7 files.

    PLEASE PLEASE PLEASE RESPOND AS QUICKLY AS POSSIBLE, IT IS VERY IMPORTANT! PLEASE AND THANK YOU VERY MUCH!

    Asked and answered already in the other thread, you did in the forum Hardware & drivers here:

    http://social.answers.Microsoft.com/forums/en-us/xphardware/thread/995bd013-A458-4B3A-A546-e113187ff934

    Please, do not separate posts on the same subject. It's just more work for people who are trying to help you.

    MS - MVP - Elephant Boy computers - don't panic!

  • Please need help with my application manifest signed Comodo to get rid of the Oracle security warning

    Dear members. I need your help please

    I have a game I'm hosting at www.hiredforoneday.com

    I signed the code with Comodo M/s. I wrote the manifest file (and changed so many times) but I still get the Oracle security warning:

    "This application will run with unrestricted access, which can put your computer and personal information at risk.

    Run this application if you trust the place and the editor above.

    I'm must admit am bat / do not understand what I do.

    Please I need your help on how to write the code manifest, how correctly put it in the jar and how to reference the html code

    The game can be played online from www.hiredforone Day

    I need the system clock of the client and also I used getResources() to read images in the jar file

    on the site, I have a (Play) button. During a call to the play button, the index page connects to the file play.html which is located in the folder pots.
    The file play.html calls the HiredForOneDay.jar file that is located in the folder of the pots. Files such as launch.jnlp, launch.html are all in the jarsfolder.

    My game using Cardlayout (CardLayOutClass) in the Applets init() the

    cardLayoutClass.showCongratulationsPanel (); which shows the Congraculations class

    then setJMenuBar (helpTopicSelector.getBar ()); HelpTopicSelector is also another class

    Here is the code

    [code]

    package hiredforoneday;

    /**
    * @(#) HiredForADayApplet.java
    *

    * @author Ruth Bugembe
    * @author John Bannick
    * @version December 23, 2012
    */
    @SuppressWarnings ("serial")
    SerializableAttribute public class HiredForADayApplet extends javax.swing.JApplet {}

    public static CardLayoutClass cardLayoutClass;
    HelpTopicSelector helpTopicSelector;
    @Override
    @SuppressWarnings("static-access")
    public void init() {}

    cardLayoutClass = new CardLayoutClass();
    helpTopicSelector = new HelpTopicSelector (this);

    Add (cardLayoutClass.getMainPanel (), BorderLayout.CENTER);
    cardLayoutClass.showCongratulationsPanel ();

    setJMenuBar (helpTopicSelector.getBar ());

    }

    } [/ code]

    I didn't send in the manifest code because I did so many versions and now am confused

    Thanks again for your time

    Ruth

    I don't think it's possible to prevent the warning message from appearing at least once. There could be an option 'do not show this again' on the dialog box warning that users can check to prevent it from appearing again. Codezone-the only thing I can think is to eliminate the dependency on the system clock client side so that the attribute in the manifest file permissions can be set to 'sandbox' rather than 'all rights '. You don't know if he read images from the same signed jar file still qualified under 'sandbox' - try it and see.

    It is worth noting that other publishers Java RIA as the Knowledge Base for the Skillsoft Support are also facing the same issue, and they document simply as a relatively mild warning message.

  • Need help please, need help to upgrade my CPU.

    Hello, I really need to upgrade my cpu, I do not take "just buy a new pc. First is my pc specs, it's a desktop HP Pentium 4, windows xp-based pc. The computer model is the HP Pavilian a1113w. On my program called 'CPU - Z' it says that my processor is: Intel Pentium 4 516, Code Name: Prescott, package: Socket LGA 775, technology: 90nm, basic tension: 2.235V, specification: Intel (r) Pentium (r) 4 CPU 2.93 GHz. The motherboard's manufacturer: ASUSTeK Computer Inc. model: Goldfish3. If you would like more information please tell me, I want the best cpu for my pc because I've already updated my ram to 4 GB and an expensive graphics card. Now the only problem is my cpu because I see that in the performance tab in windows Task Manager, my cpu is always at 100% when I run the games or other applications up-to-date and causes a lot of noise from the fan and heat.  Please help me and I'll try to give you 5 dollars to your paypal. Thank you. PS does not matter if I have to buy one off of ebay or used.

    Hello:

    No double heart will not work. Pentium 4 650 is the maximum.  If you try to install any dual processor core (even a Pentium D), you will be very disappointed.

    You will notice a pretty decent performance increase maxing out your PC to the Pentium 4 650.

    Here are the comparative table next to your current CPU and upgradable processor maximum.

    http://ark.intel.com/Compare.aspx?ids=27482, 27455,

    I would like to land $25 on a used in a blink of an eye.

    I hope that when you bought your memory, you got all the DDR2 PC 4200 (533 MHz). At least that's what the plug state you can install.

    DDR2, PC4200 memory + CPU P4 650, your machine must be rather decent.

    Your bottleneck is the ugly video. You can install a PCI video card (which I assume you did). You cannot install a PCIe video card, and that's your biggest problem.

    Paul

  • Please need help reinstalling edition student nc6 after resetting my computers

    I have an adobe creative suite disc 6 design and web premium, the education edition. I recently reset my Mac computer to factory reset and now I'm not able to reinstall the nc6.  How to let adobe know I erased the previous installment, so I can reinstall again? I know that I only installed twice on the drive. I need to reinstall on my Mac book, moreover, this laptop has been set to factory reset also. Please help, I need to work on my nc6. Thank you

    Hello

    I would ask you to go there and download the product from the link below.

    and then you can install it using the serial number.

    Download Creative Suite 6 applications

    It will be useful.

    Concerning

    Maansee

  • Please need help with the deployment of web applications in Jdeveloper 12 c

    Hello

    I'm desperate for help guys. am trying to deploy a web application in weblogic server, but nothing works!

    I have created a project in jdeveloper and created a jsp page in the project, what I want is to run this page!

    I followed the instructions here: Deployment of Applications Web Fusion , I don't really know if I did good or bad, the document is too detailed and not understood clearly.

    I am a newbie oracle user and trying to build a jsp web application connected to the oracle database. fails application deployment it says: cannot run application deployment IntegratedWeblogic error...

    Please could you tell me the steps of deploying applications in Jdeveloper 12 c?
    What deployment profiles, I need to create (ear, war, mar)?

    This deployment descriptor, I need for my application work?

    Please guys I am newbie to oracle, if you could give me simplified answers and straight instructions it will be appreciated .

    Thank you

    It depends on your knowledge of jsp and the possible controllers like struts, the faces and the adf (which is an addon of jsf). ADF has the advantage that a large number of configurations and other stuff is handled for you. However, if you are familiar with Struts you can use it too.

    The decision also depends on demand and what he should do. I can't comment on this, as I don't know.

    As you use 12 c my recommendation is to use the stack complete adf, meaning adf faces and adfbc for access to the data in the Database.

    There is a license for the adf if you want to deploy on a WebLogic Server, however there is a free version (adf essentials) that uses a GlassFish server.

    Timo

  • URGENT! need help with inDesign template

    First thanks for taking the time to read this.  I found a model online for indesign to use xerox funflip paper paper with.  I worked on it for the kids birthday invitations and promised my wife we would have them done and ready to send on Monday.  Well its Saturday night and I have no idea the hell I do.  I worked on this for 2 solid days and do not really understand.  But I don't want to disappoint my wife and the just prompt would be cool.  I found the pattern on the adobe site and figure hey how bad could be... EVIL!

    Someone please come and save the day for a dad who will definitely be in the dawg House!

    I found the pattern here http://www.Adobe.com/cfusion/exchange/index.cfm?event=extensionDetail & extid = 1800522

    It sounds simple enough, but I just bought my first mac 2 weeks ago and I fight.

    HELLLLLLP

    Here's a primer of two minutes:

    To add a photo, you will use the file > Place command.... Either, you can draw a frame first using the tool frame (the rextanglebox with the X through it in the Toolbox), or you can just click with the mouse and drag the loaded cursor to draw an image on the fly (which in CS4 dimensionnera the image to fit. If you predraw the image, the image will be 100%).

    There are two arrows at the top of the Toolbox. Solid black is the selection tool and select the whole object (that is, the image and its content). The white arrow is the direct Selection tool and select the image within the frame, which you can it (drag a control handles around the edge. Hold down the SHIFT key while you do to constrain proportions) or reposition it within the frame. Select the image with the Selection tool and you can crop the image by dragging a control handle. If you hold down the Cmd + Shift while dragging you will scale the frame and content proportionately. If you need to rotate, select the image and use the arrows rotation in control at the top of the display panel. Set the rotation to occur around the center point by clciking on the central point of the power of Attorney of control on the left edge of the control panel (the spots correspond to the control handles and the center of the image).

    For text, use the text tool. Click and drag an image and type your information. If you see a little red sign in the lower right corner of the frame, there is more text that is not displayed and you need to change something.

    Of course, it's a very brief set of instructions, but I hope it will allow you to confuse your way along a start. Arrived on the back with more questions when understand you what they are.

  • Please - need help changing the rules to exclude certain hosts/guests

    I need to find a way to exclude certain hosts and invited only a few rules, and I can't seem to understand.  Here is my example.

    I have a guest who I want to disable monitoring of the 'Memory of Virtual Machine of VMW Swapping' State.  The guest I want to exclude the rule is called "ucapmil1 (QAUCL).

    So I in the field field of application of this particular rule rule:

    "VMWVirtualMachineMemory where virtualMachine.name does not correspond to ' ucapmil1 (QAUCL)"

    I also tried

    VMWVirtualMachineMemory where monitoredHost.name! = 'ucapmil1 (QAUCL).

    Neither seems to make a difference.  Can someone point me in the right direction?  Thanks in advance.

    Try using esxServer.name

  • Intergrate a membership base for two pages with unique identifiers as well as a system of payment for members.  Please, need help!

    Registered members

    There is nothing to do. What you want requires a dynamic interface. This has nothing to do with the muse. You need a catalyst for business pro account or use a free CMS like Joomla, Wordpress etc on a properly configured server.

    Mylenium

  • help is it you please-need help setting logo before cutting the

    Hi all, I am after some help.

    I had a created logo that everything seems okay, until I opened in illstruatvoe adobe full version.

    Some of the lettering on laps so when cutting on a vinyl plotter, it would all go wrong.

    So I pulled the rubber to try to unravel, although the rubber too big to fix.

    All do you recommend them?

    Thank you very much

    Kind regards

    Ryan

    Click the top left button 'unit '.

  • Please need help to earn 7 d drive to c drive which win xp is installed. computer will start?

    I have 2 drives. disc one i have win xp. disk b I have win 7. I want to switch to win 7 on the disk where win xp is located. is this possible? I have enough free space on the disk copy win 7. I want to assure you that my computer will start later.

    Thank you

    I have 2 drives. disc one i have win xp. disk b I have win 7. I want to switch to win 7 on the disk where win xp is located. is this possible? I have enough free space on the disk copy win 7. I want to assure you that my computer will start later.

    Thank you

    In your subject line you say C: and D: but in your text you say A: and B: as A: and B: are not possible, I assume you mean C: and D:.

    Sorry to tell you that you can't do what you want to do.

  • Newbie here, please, need help from someone.

    Hello

    Using Windows Vista with 1 GB of RAM. Have a connection to the internet through slow modem. Have SD, 2 GB Micro Cruzer. Is it possible to get more internet speed using the Cruzer to increase my computers RAM?

    Thanks in advance, Ralphie24

    ralphie24 wrote:

    My computer speed increase if I am able to increase my RAM size using 1 GB of my Cruzer SD?

    If possible, how can I do my Cruzer SD to work as 1 GB of RAM?

    No, it won't. The only way to increase your RAM is to add/change the chip memory RAM inside your computer.

    No, it is not possible to see an external storage medium as internal computer RAM.

Maybe you are looking for