calculation not days?

Hi friends

Here, I need I need to calc the reserved order
For example

My where condition should by like that

Trunc (Order_date) > = Trunc (sysdate -: P_date)
But I do number not valid error

Want to cal # days
as (sysdate - 2) but I'm passing P_date as parameter

Thank you, ADV

Please read the forum FAQ on how to ask questions

{: identifier of the thread = 2174552}
{message: id = 9360002}

Suresh * wrote:

My where condition should by like that

Trunc (Order_date) > = Trunc (sysdate -: P_date)
But I do number not valid error

Is variable: P_DATE a DATE or a NUMBER? What kind of data are the columns?

If: p_date is a date, then sysdate -: p_date returns a number of days which you compare then to a date that would be it's like asking if December 12, 2012 is greater than three.

Tags: Database

Similar Questions

  • Windows will work not day after I installed the windows updates.

    The next day, I installed the Windows updates, I turned on my laptop a short Vaio splash screen is displayed and a black screen comes up saying that "Windows couldn't start. A recent hardware or software change might be the cause. "I don't have the installation disc of Windows that it suggests to use the software is preinstalled.  The safe mode and last known good configuration and the start windows normally get Windows running.  It is simply scrolls a list of code and ends with a line crcdisk.sys, goes to a blue screen for less than a second, then goes to black screen.  All the help I could get to address this issue would be greatly appreciated.

     

    If Safe Mode doesn't work no and you don't have a Vista DVD from Microsoft, do a repair disc to do a startup repair or a system restore:

    Download the ISO on the link provided and make a record of repair time it starts.

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu.

    When you have changed that, insert the Bootable disk you did in the drive and reboot.

    http://www.bleepingcomputer.com/tutorials/tutorial148.html

    Link above shows what the process looks like and a manual, it load the repair options.

    NeoSmart containing the content of the Windows Vista DVD 'Recovery Centre', as we refer to him. It cannot be used to install or reinstall Windows Vista, and is just a Windows PE interface to recovering your PC. Technically, we could re-create this installation with downloadable media media freely from Microsoft (namely the Microsoft WAIK, several gigabyte download); but it is pretty darn decent of Microsoft to present Windows users who might not be able to create such a thing on their own.

    Read all the info on the website on how to create and use it.

    http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/

    ISO Burner: http://www.snapfiles.com/get/active-isoburner.html

    It's a very good Vista startup repair disk.

    You can do a system restart tool, system, etc it restore.

    It is NOT a disc of resettlement.

    And the 32-bit is what normally comes on a computer, unless 64-bit.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    How to get Vista recovery Media or the Vista recovery Partition on your computer back to factory settings.

    There is no Vista free download legal available.

    http://eSupport.Sony.com/Perl/select-System.pl?PRODTYPE=1, 24,26,66,9,70,5,72

    Contact your computer manufacturer and ask them to send a recovery disk/s Vista set.

    Normally, they do this for a cost of $ small.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    In addition, ask them if you have a recovery Partition on your computer/laptop to restore it to factory settings.

    See if a manual provided with the computer or go to the manufacturer's website, email or you can call for information on how to make a recovery.

    Normally, you have to press F10 or F11 at startup to start the recovery process...

    Another way I've seen on some models is press F8 and go to a list of startup options, and launch a recovery of standards of plant with it, by selecting the repair option.

    See you soon.

    Mick Murphy - Microsoft partner

  • Calculation of days of company using TimestampDiff in OBIEE

    Hi Experts,

    I have a requirement to calculate working days and I use a simple statement as shown below. I need calculatethe difference between two days when 'Day of the week indicator' = 'Y' and holiday status flag = 'n'. The statement here calculates the difference between two days and I get the results displayed for each time the condition ('Day of the week indicator' = 'Y' and status of Holiday indicator = 'n') is true. Ideally, I need to pass this filter inside the TimeStampDiff function to retrieve the correct value (because consider the days of week and holidays when calculating difference in date). Please let me know on how we can move the filters inside the TimestampDiff function or if there is another way to achieve this.

    BOX WHEN "CalPERS BI." "" The RPD Date2. "' Day of the week indicator ' = 'Y' and 'CalPERS BI." "" The RPD Date2. "" Indicator state holiday "= ' don't

    THEN TimeStampDiff (SQL_TSI_DAY, "CalPERS BI". "" The RPD Date2. "" Calendar date ","CalPERS BI. " "' Date4 RPD. ("" Calendar Date ") END

    Thank you.

    Rick.

    Check this http://www.cool-bi.com/Tweaks/DateExcludingWeekends.php

    Try this

    TimeStampDiff (SQL_TSI_DAY,

    BOX WHEN "CalPERS BI." "" The RPD Date2. "' Day of the week indicator ' = 'Y' and 'CalPERS BI." "" The RPD Date2. "" Indicator state holiday "= ' don't

    THEN "CalPERS BI '." The RPD Date2. "" Calendar Date "end.

    BOX WHEN "CalPERS BI." "" The RPD Date2. "' Day of the week indicator ' = 'Y' and 'CalPERS BI." "" The RPD Date2. "" Indicator state holiday "= ' don't

    THEN

    "CalPERS BI '." Date4 RPD. ("" Calendar Date "END)

  • Page calculation not return value to the page

    I'm trying to get a calculation of page to work in the rendering phase...
    I've implemented the calculation according to the region, and I want it to run whenever someone adds a detail line on the form. This is a query that returns a single value:

    Select nvl (sum (inv_det_amount), 0) in the invoice_details where inv_id =: P320_INV_ID;

    The query works fine under workshop/SQL SQL commands, but does not occur on the page.

    I have the page element declared as 'source' to a column of data.
    What might be missing?

    The Page element contains the correct calculation, but it is not displayed on the screen.

    Published by: V Rickert on May 15, 2013 15:39

    Hello

    >
    I have the page element declared as 'source' to a column of data.
    >

    What is a parameter for Source used?

    If it's still, by replacing the value that exists in the session state, then that could explain it.

    This means first of all, you do your calculation or procesess, and after that to read data in the element.
    And gets what you read database element.

    Kind regards
    Aljaz

  • If flash player problem, there is nothing wrong to do a system restore when he was working and not day of flash player, but firefox update?

    flash player update and update of firefox is not compatible. Do not play videos or connect to web sites and freezes... Solved by doing an update of windows system where he was working. This gives you a work of flash player, and you don't update and cancel the automatic updates. You can update firefox. A simple solution, just type in system restore in the start menu and follow the directions. Worried if there are drawbacks.

    Thanks for the replies. Here is my story: after the update of firefox and flash player June 22, I was unable to use my computer effectively. I am retired and use the computer for research, the entertainment and recreation. and I could not reach sites, found sites gel, could not play videos or hear telephone conferences. I tried to replace the flash player with older versions of the flash player, but kept receiving messages that the installation failed and I needed to install the latest version, I tried to get rid of. I also reinstalled firefox and flash player disabled player real and cleared the cache and cookies. I did not disable the protected mode which seemed complicated, I knew how to clear cookies in firefox at the time here.
    I decided to do a system restore before June 22. I have found that installing and reinstalling and put to date had exhausted most of my system restore dates, but I was able to find one on June 3 and he ran. If other people will try this fix, they should do it before he runs of dates.
    The fix worked, and I have not seen any bad effects. I have no files or important data. I see that this could be a problem. However the difficulty of making a system restore is running much less than firefox in safe mode or some of the other methods of obtaining an older flash player which I have been unable to do. Also I don't know how to disable the protected mode or quick acceleration, but I see that people should be judged with the fix of real player before doing a system restore which seems to be a last resort, for your comments.
    I was more concerned about security than with the loss of data. It seems that adobe tries to protect firefox users of problems with viruses with protected mode, and using the flash in prior non-protected mode was what I've been concerned. However, if I couldn't use the computer, the protected mode was not any help. I could stop and protected him, also. I didn't suggest others to do this fix if it was dangerous, but for me it was quick and easy to a moment that I was about to give up. I wanted others to know about it, because it works, but I didn't want to be the cause of unintended consequences. So I guess I have found, use the fix at your own risk and try first the other sollutions.

  • Says Windows do not update more later I pod not day not windows tested

    I get the message that the ipod was last updated is not certified windows and can harm my pc if it is installed. I cancelled it but what do I do now. Any help

    I would go here...

    http://www.Apple.com/support/iPod/

    .. .and know when he will be certified Windows.

    --
    Gina Whipp
    2010 Microsoft MVP (access)

    Please post all responses on the forum where everyone can enjoy.

  • Recent files does not day

    Hello

    I have the list of my recent files which does not update with Photoshop CC 2015.

    Thanks for your help.

    JC

    Hi Mathib,

    Suggest you go to the file menu in Photoshop > open the recent item > clear recent files list > restart Photoshop and then check out.

    Kind regards

    Claes

  • Calculation not released overall value

    Hi, I have the variables representing numeric values and when I try out a product or a quotient of these values, all I get is the values themselves. I may be a bit vague, but an example should help clarify this.

    For example:

    A = 4

    B = 2

    C = 3

    D = A * B/C

    < cfoutput > #D # < / cfoutput >

    and I'll get 4 * 2/3

    not 2.6667

    How can I get that it displays 2.6667

    OK ColdFusion is usually without type and it must not occupy, but you REALLY put that without type, forgiving nature adversity.

    Try a simpler code.

    
    
    
    
    
    
    #D#
    

    You where to define three strings, that ColdFusion would normally automatically convert numbers, if you did do the math.  But then, instead of doing math, you create another string by concatenating three original variables and some mathematical operators.

  • calculation no days between 2 dates

    Hello

    "I want to calculate the number of days between the two dates for my application based on" leave system "and want to be typed automatically in the P2_TOTAL_DAYS text box.

    So I have an event like onChange = "javascript:Calc('P2_END_DATE','P2_START_DATE')" in the form of P2_END_DATE element attributes. "

    And in the header of the page, I wrote javascript code.

    Now, in the 'Calc' function I want to have the time in milliseconds for the two arguments, as well as the difference of these two times, I can get the number of days between the two. Now I m trying the getTime() function, but I m still fails.

    Can anyone help with this.

    Thank you.

    Hello

    In your code:
    var date1_ms = ($x (pendDate.getTime ()) .value);
    should be
    var date1_ms is $x (pendDate).value.getTime ();. or var date1_ms = $v (pendDate) .getTime ();

    In my code here as an error:
    $s ("P2_TOTAL_DAYS") .value = ((endDate.getTime () - startDate.getTime (()) / 1000 * 60 * 60 * 24);
    should be
    $s ("P2_TOTAL_DAYS", (endDate.getTime () - startDate.getTime (()) / 1000 * 60 * 60 * 24);

    But you can also use the code Andy, which is more flexible because you can use/define your own format mask,.

    Greetings,
    Roel

    http://roelhartman.blogspot.com/
    http://www.bloggingaboutoracle.org/
    http://www.Logica.com/

  • Not DAY. E AIR 1000 RSS image slide show of the internet server support?

    Hello

    I would like to know if air journ.e 1000 is able to display a slideshow of images generated from an intranet server rss recalling an http page
    (http://server/RSSGenerate.aspx)

    Thank you
    Ivan

    Hello

    As far as I know that the list of RSS feeds already set up.

    You can use the up/down arrows on the remote control to select an available entry or faucet pre OK press the OK button on the remote control in the Add box enter a desired RSS free directory, using the keyboard below.
    Tap OK or press ok on the remote control as well as a list or RSS titles appears on the left. Arrow to use up/down to display an overview of the content of each title.
    It works by using local storage.

    Using the internet, you can configure Flickr or Picasa account

  • calculator not canned not numbers to

    division attempt by another number 265.  each digit has been replaced by the next then changed from 2 to 6-5.  The only number on the screen is 5. How can this be corrected?

    Saturday, January 1, 2011 16:55:05 + 0000, MNewsome wrote:
     
    > division attempt by another number 265.  each digit has been replaced by the next then changed from 2 to 6-5.  The only number on the screen is 5. How can this be corrected?
     
     
    You are in Typeover mode, and you want to be in insert mode. To change
    mode to another, press the insert of your keyboard.
     

    Ken Blake (MS-MVP)

  • Which past now and not days ago = &gt; publication of text captions with anti-aliasing off the coast looking for really bad.

    I reported the bellows of text and I'd like to know if it happens to someone else.

    Concise problem statement:

    When you publish buttons with text or text with antialiasing off the coast, the result is very bad.

    Last project I cancelled 2 months ago and it seems good. But when I did a few changes yesterday and I published it again all the buttons and links that they looked very bad.

    I tried with different computers, where they have installed captivate and I have reproduced the bug how I show below and in any place of same problem.

    I can't show the client the changes because the evil look textfields.

    I tried to reinstall all the options, Captivate and install older versions of flash and nothing plugin, everything looks the same. Probably a windows update may cause the problem, I don't know.


    Steps to reproduce the bug:
    1. black background or dark color
    2. create the button and select Properties
    3. Select the text color color yellow or clear, size of large font (24-30) and transparent background
    4 publish

    Results: no text no embattled arround White halo, eat as the text. The part of the text is a bit fuzzy.

    Resemble the translucent color part of the text to produce somehow anti-aliasing is white in color.

    Expected results: the net image as html on browser text.

    Hi again

    Well, it give a try.

    Minimize all applications that you can see the desktop.

    Right click on the desktop, then select Properties.

    Click the appearance tab.

    Click on the effects button.

    You see an option called use the following method to smooth edges of screen fonts?

    If so, disable the option and click OK.

    Report back if you still have this option and, if so, if you erase it helps.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • Negative numbers does not work in the calculation

    I'm new to calculations of form fields and have encountered a problem that I can't solve. I have a form with calculations. There are four columns (beginning balance, revenue, expenditure and balance) the problem occurs when a negative number is specified for the opening balance. My calculation should start balance + revenue - expenses = balance but if a negative balance of start's ed and you tab to end receptions, enter received, expenses tab, enter the expenses, balance tab I get error "the value entered does not match the format of the field". "." If the opening balance is a positive number, there is not a problem. I can send someone a copy of the form if this help solve this problem. For any help or suggestion would be greatly appreciated.

    I use Acrobat 9 Pro

    Here is a sample of my closing balance calculation:

    Get the first value in the field
    "var v1 = getField (start Balance.7") .value;

    Get the second field value
    var v2 = getField("Receipts7").value;

    Get the first value in the field
    var v3 = getField("Expenditures7").value;

    The value of this field value equal to the difference
    Event.Value = v1 + v2 - v3;

    Computers don't perform calculations using decimal values but convert decimal values in binary values, perform the calculation of the binary base and then convert decimal values. Since for many decimal value, there is not an exact conversion value a little mistake gets introduced in the values and the calculation. Change the 'None' format and expand the field for the result, we see a value-1.8189894035458565e - 12 or the value of-'0.' followed by 12 zeros, then the 1.8189894035458565 value. A very small value. If we round the value of the calculation (not the format displayed in the Format option) you can get the answer of $0.00. We can check this result by changing the 'Format', 'None' option and expanding the field to account for the long value.

    I would use the util.printf method to perform the rounding for the result of the calculation.

    Your calculation script could be:

    Get the first value in the field
    "var v1 = getField (start Balance.7") .value;

    Get the second field value
    var v2 = getField("Receipts7").value;

    Get the first value in the field
    var v3 = getField("Expenditures7").value;

    The value of this field value equal to the difference
    Event.Value = util.printf ("%,101.10f", Number (v1) + Number (v2) - Number (v3));

    This script rounds to 10 decimal paces ensuring that the result will be the value that can be displayed using the number format.

  • subscription to adobe illustrator. With my money withdrawn credit card, but subscription does not work (and it doesn't work all day). What do I do?

    I made an annual subscription to adobe illustrator. With my money withdrawn credit card, but subscription does not work (and it doesn't work all day). What do I do?

    I read that it will take as much as 24 hours for a purchase to show your Adobe account

    Your subscription to cloud shows correctly on your account page?

    If you have more than one email, you will be sure that you use the right Adobe ID?

    https://www.adobe.com/account.html for subscriptions on your page from Adobe

    .

    If Yes

    Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud

    -Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html

    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html

    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html

    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html

    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp

    -http://helpx.adobe.com/creative-cloud/kb/license-this-software.html

    .

    If no

    This is an open forum, Adobe support... you need Adobe personnel to help

    Adobe contact information - http://helpx.adobe.com/contact.html

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    -Select your product and what you need help with

    -Click on the blue box "still need help? Contact us. "

  • Hello. My Creative cloud subscribe does not refresh. I had students sign up, but a few days ago it stopped because there is no money on my card. Today, I sent student anouther subscribe with anouther card, I saw that the money went to adobe but subscr

    My Creative cloud subscribe does not refresh. I had students sign up, but a few days ago it stopped because there is no money on my card to prolongate it. Today, I sent student anouther subscribe with anouther card, I saw that the money went to "adobe", but subscription is not activated yet. I can't work, what can I do? Thank you. Sorry for my English.

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

Maybe you are looking for