Using greater than - less than in a date query in a form

In version 5, the user could put in ">03/05/08" in a date field, hit the execute query button, and the form would pull up everything >3/5/2008. In version 10g, I get all format errors when I put in the same thing. Is there a work-around, or is this feature no longer supported in 10g?

I assume you have recently performed an upgrade to Forms 10g. Did you only upgrade to Forms 10g or were their other upgrades as well (like the Database)? Has the NLS_DATE_FORMAT changed? Can you run your query in SQL*Plus successfully? Any additional information you can provide will greatly aid us in helping you troubleshoot this issue.
Craig...

Similar Messages

  • User input formula variable with greater than/less than operators for KFG

    Hello all,
    I have used a formula in my query that is a difference of two key figures .For e.g:
    Difference = tax from system A  -  tax from system B.
    Now when the users run the report they should be prompted for the 'Difference' threshold for seeing the report say where difference is greater 100 or equal to 10 and so on.Currrently I have created a formula variable with 'user input' and created a 'condition' to display 'Difference' greater than the user entered value.
    However,it is required to have various selection options for setting the threshold of difference.For e.g User should be able to set say 'equal to'/'greater than/less than/not equal to operator for 'difference' in the initial selection screen of the report.
    With the current user-input formula variable I am not getting these 'greater than' etc operators.Any ideas on how to achieve this?

    Ya know, that's all well and good ... BUT ... WHAT IF you do want to sort text type columns with Greater Than and Less Than operatiors??
    SQL does it just Fine ... so WHY does APEX have the limit??? This is an Oracle BUG ... it SHOULD NOT limit the operators ... I realize "they" may be trying to be helpful with proper constraints to field searches ... but ... if SQL can do it, then ... no need for a limit.
    EG ...
    Show the records where
    the "Begin_Year-Wk" data is less than or equal to "2009-09" AND
    the "End_Year-Wk" data is greater than or equal to "2009-04"
    ... to give everything that was running in that 5 week period whether or not it starts within that time frame
    I can run this query perfectly fine via SQL ... but not in APEX ... unless I reconvert a lot of strings back to numbers, and for sorting / formatting / explain-to-user purposes, I really don't want them to be numbers.
    So ... there's gotta be a hidden tweak for operators somewhere ...

  • Greater than/less than comparisons

    Hello!
    Does somebody has any idea why I get this error message ?
    Greater than/less than comparisons with character type operands may not be portable  ?                                  
    friendly regards
    erdem

    Hi Erdem,
           You can only use the comparison operators with in the Numeric Characters or the parameters with integer Data Types or Decimal Data Types.
    For Example,
    Data : A type I Value '5',
             B Type I Value '10'.
    If A < B.
    else.
    Thanks.
    Reward points If Helpful.

  • Can a topic title contain angle brackets (greater than / less than)?

    Using RoboHelp 8, WebHelp output generated via rhcl and displayed in modified Internet Explorer (IE).
    One of my colleagues is creating a topic to describe an application object that has angle brackets (greater than / less than signs) in its screen name. Needless to say, RoboHelp doesn't like those symbols in the topic title, and it hides them and the text between them in the generated topic title. Steps to reproduce: Typed < and > in the Properties dialog; topic's <title> meta tag shows &lt; and &gt; .
    Other than replacing the topic title field with static text, is there a way to push these symbols through the Properties dialog or the HTML editor?
    It's not world-shatteringly important - the workaround is okay - but I'd like to know how to avoid this problem with other "special" characters, if I can.
    Thanks,
    Elisa

    Willam is correct that you cannot type < or > directly into the HTML code and in pointing out that RoboHelp automatically converts the code when you type that in design view.
    However, I think that you are aware of that and it is not the problem you want addressed. You can see that you can type that straight into the Topic Heading but your Topic Headings are not typed in, you are using fields and what you are finding is that if the Topic Title contains the brackets, that works everywhere other than Topic Headings. Is that correct?
    If so the cause is linked to what Willam has pointed out but I am sure Adobe could work out a solution. Report it as a bug. Please follow this link.
    http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Question why has my balance on my itune account have totally disappeared when I have only been using it for less than a year? had still fair bit of money in it too. around $60

    Question why has my balance on my itune account have totally disappeared when I have only been using it for less than a year? had still fair bit of money in it too. around $60

    First, make sure you're logged into the iTunes Store using the account ID and password you set up, or used, when you redeemed your card/gift.  If you are, try signing out of the account and back in.
    If you're sure you are using the correct account and that you're signing in to the iTunes Store, and signing out and back in doesn't help, go to the Purchase History and review your purchases to make sure that you should indeed have a balance left. iTunes doesn't always refresh the balance it shows, so it's possible you spent the money and it just wasn't being reflected in the display. This display error can usually be corrected by logging out of the iTunes Store and then back in.
    If you confirm that you should have balance left but the iTunes Store isn't showing it correctly, send a message to the iTunes Store customer service department through the contact form you'll find by selecting the most applicable section of their Support page (select the Contact Support link and follow the instructions) and explain the problem to them.
    Good luck.

  • Greater Than Less Than

    Dear all,
    I am Using oracle 10g R2 database on windows.
    I have a doubt that,
    If I have a 'Date' datatype column suppose a and want to (select Less than sysdate and greater than Sysdate-31(One Month).
    e.i.
    select a,b,c from T where a Less Than Sysdate-31(One month.);How can i do this.
    Thanks,
    Chanchal Wankhade.

    Shinegar wrote:
    I had not considered the effect on an index with TRUNC. Thank you for pointing that out.
    TRUNC doesn't actually remove time as you can see below
    SELECT TO_CHAR(TRUNC(SYSDATE),'MM/DD/YYYY HH:MM:SS AM') "Today's Date and Time" from DUAL;
    Today's Date and Time
    01/19/2012 12:01:00 AMLet's say sysdate = Jan 19, 2012 11:00:00 AM
    As shown above, trunc(sysdate) = Jan 19, 2012 12:01:00 AM
    So, trunc(sysdate) -1 = Jan 18, 2012 12:01:00 AM
    Removing the trunc from column a
    select a,b,c
    from T
    where a between trunc(sysdate)-1 and trunc(sysdate);will also remove all data that is greater than Jan 19, 2012, 12:01:00 AM so you would only see data from one day -- Jan 18th.
    Adding the trunc to column a returns all the data from Jan 18th and 19th.
    It is my experience that users will ask for a date range, but then will ask for just one day. If Column a is not truncated, then no rows would be returned when between trunc(sysdate) and trunc(sysdate).
    Most programmers will not use trunc(sysdate) in the where clause, but would use a variable with value assigned of sysdate or trunc(sysdate) as it provides more flexibility.
    If you do not want to use trunc on column a, then the where clause should be BETWEEN trunc(sysdate) - 31 AND sysdate.
    Edited by: Shinegar on Jan 19, 2012 12:40 PMThe trunc function does not remove the time portion, but it does set it to midnight. Or at least i would if you used the correct format mask in your TO_CHAR. The mask for minutes is MI not MM.
    SQL> SELECT TO_CHAR(TRUNC(SYSDATE),'MM/DD/YYYY HH:MI:SS AM') am_pm,
      2         TO_CHAR(TRUNC(SYSDATE),'MM/DD/YYYY HH24:MI:SS') mil_time
      3  from dual;
    AM_PM                  MIL_TIME
    01/19/2012 12:00:00 AM 01/19/2012 00:00:00John

  • Filtering Interactive Reports with Greater Than Less Than Operators

    The available filter operators in the interactive reports do not include greater than or less than. How is it possible to enable an application user to filter records where greater than or less then logic is needed?
    For example the user wants to query records where sysdate falls between a start and end date.
    Regards,
    Todd

    Ya know, that's all well and good ... BUT ... WHAT IF you do want to sort text type columns with Greater Than and Less Than operatiors??
    SQL does it just Fine ... so WHY does APEX have the limit??? This is an Oracle BUG ... it SHOULD NOT limit the operators ... I realize "they" may be trying to be helpful with proper constraints to field searches ... but ... if SQL can do it, then ... no need for a limit.
    EG ...
    Show the records where
    the "Begin_Year-Wk" data is less than or equal to "2009-09" AND
    the "End_Year-Wk" data is greater than or equal to "2009-04"
    ... to give everything that was running in that 5 week period whether or not it starts within that time frame
    I can run this query perfectly fine via SQL ... but not in APEX ... unless I reconvert a lot of strings back to numbers, and for sorting / formatting / explain-to-user purposes, I really don't want them to be numbers.
    So ... there's gotta be a hidden tweak for operators somewhere ...

  • Numbers '08 "If" with a greater or less than answer

    Hi all - I have a cell with a sum D & E28 (merged cell) that I want another cell B30 to display a value based on what is in cell D & E28.
    If cell D & E28 is 8 or less I want B30 to say 8. If D & E28 is greater than 8.001 but less than 12 I want B30 to say 12 and if D & E28 is greater than 12.001 but less then 18 I want B30 to say 18
    Any ideas?
    Thanks
    Peter

    pdmjr,
    =IF(ROUND(D28,3)<=8.001, 8, IF(ROUND(D28,3)<=12.001, 12, IF(ROUND(D28,3)<=18, 18, "Over 18")))
    should do it for you.
    The nested IF statements handle your logic. The ROUND statements handle internal math errors and your need to break at .001. You didn't say what to do with inputs of 18 or greater, so I suggested a text string for that case.
    The form of the IF statement is: If (logical statement) is True, Then do this, Else do this. Your case requires three tests. You could quibble about a value that is, say, 12.0011 and rounds to 12.001, but I doubt you are concerned about that level of detail. If so let me know.
    Does this help?
    Regards,
    Jerry
    Message was edited by: Jerrold Green1

  • Dates Greater Than, Less Than, but what about the dates between?

    This is what my data looks like.
    Employee# StartsWork EndsWork
    1_________8/15______8/16
    2_________8/16______8/19
    3_________8/17______8/17
    I need to know how many employees I have working on any given day.
    The table below shows the dates across the top, and the data in the cells represents the total number of workers on any given date.
    Date_____8/15_______8/16_______8/17________8/18________8/19_______8/20
    Workers___1__________2__________2___________1__________1__________0
    FYI: This report does not contain any prompts. It just shows me the next 6 days.
    I was trying something like this but without any success: Create a column
    CASE WHEN current_date > "StartWork" AND current_date < "EndsWork" THEN '1' WHEN (current_date+1) > "StartWork" AND (current_date+1) < "EndsWork" THEN '2'
    and so on, then just use the column to sort the rows. I can use some count function later to finish it.

    Create three date dimensions, Join first date dimension (d1) with Start Date, join second date dimension (d2) with End date, create a dummy join (1=1) with 3rd date dimension.
    On the report or in PRD create a measure as follows.
    CASE WHEN D3.Date <= d2.Date and D3.Date >= D1.Date then 1 ELSE 0 END

  • Use of greater than, less than and ranges in release strategy

    Hi,
    We are using release strategy on purchase order level. We have added purchasing group as one of the characteristics of this release strategy. As we have many purchasing groups in place we want to work with ranges of purchasing groups and also make use of the <,>  signs. We can enter those signs, but the strategy does not seem to recognize them. The blocking is not working.  Whe also have the po value in the startegy and there the signs do work. Probably because this field is numeric.
    Is there somebody that has an idea how to solve this?
    Regards,
    Ed

    Jurgen,
    This does not work. I can select multiple values for the purchasing group characteristic, but I can not select the option intervals allowed. I assume this only applies to numeric attributes. I can not define purchasing group as a numeric characteristic. The system overwrites this when I refer to the field in EKKO.
    Is there an option to use the not equal sign?
    Ed

  • Using 'Greater than/less than' in dynamic where condition

    Hi Guys,
    I am trying to use a logical expression with GT/LT condition in dynamic where, butits giving dump  "expression worngly parenthesised' . My query runs perfectly fine when the logical expression does not have 'GT/LT' . Is there a different way of using GT/LT in dynamic where or is it not posiible at all?? Please find my query below -
    IF vendor IS NOT INITIAL.
          i_where_clause = 'a~lifnr = vendor'.
          APPEND i_where_clause.
          CLEAR i_where_clause.
        ENDIF.
        IF to_date IS NOT INITIAL.
          i_where_clause = 'a~zzearliestdep LT to_date'.
          APPEND i_where_clause.
          CLEAR i_where_clause.
        ENDIF.
        IF from_date IS NOT INITIAL.
          i_where_clause = 'a~zzlatestdep GT from_date'.
          APPEND i_where_clause.
          CLEAR i_where_clause.
        ENDIF.
      SELECT aebeln alifnr azzearliestdep azzlatestdep
                bebelp belikz b~kzabs
           INTO CORRESPONDING FIELDS OF TABLE i_podetails
           UP TO max_hits ROWS
           FROM ( ekko AS a INNER JOIN ekpo AS b
                   ON aebeln = bebeln )
           WHERE a~ebeln = ebeln AND
                (i_where_clause).

    Hi,
    Try this -
    IF vendor IS NOT INITIAL.
      i_where_clause = 'a~lifnr = vendor'.
      APPEND i_where_clause.
    ENDIF.
    IF to_date IS NOT INITIAL.
      if i_where_cause[] is not initial.
        i_where_clause = 'AND'
        append i_where_cause.
      endif.
      i_where_clause = 'a~zzearliestdep LT to_date'.
      APPEND i_where_clause.
    ENDIF.
    IF from_date IS NOT INITIAL.
      if i_where_cause[] is not initial.
        i_where_clause = 'AND'
        append i_where_cause.
      endif.
      i_where_clause = 'a~zzlatestdep GT from_date'.
      APPEND i_where_clause.
      CLEAR i_where_clause.
    ENDIF.
    Cheers.
    \[removed by moderator\]
    Edited by: Jan Stallkamp on Jun 26, 2008 1:08 PM

  • HT201401 Can anyone confirm that 12 hours of low to moderate use is acceptable battery life for an Iphone 5. That is all I am getting. I am using the phone less than I have used any Iphone I have ever had. The battery life between charges is less than hal

    I am very disappointed with the battery life I am getting out of my Iphone 5S 64G. I charge it every night, and would be lucky to make 15 to 20 minutes of calls during the day and yet I am lucky to get much more than 12 hours of life out of the battery.
    I have to make a conscious decision not to use it to avoid it running out on me. I had it back to the Apple Store last week and they ran diagnostic checks on ot and said that the hardware was within specs.
    They replaced the software as it was showing that Springboard had crashed on several occasions. The other problem I was complaining about was that at least 2 or 3 times a day, the phone would refuse to wake up when I hit the home button. It would take sometimes up to a minute of pressing the button before anything would light up. The guy at the Apple store said that this was caused by Springboard crashing and that this would also be what is reducing the battery life.
    I did notice that after they replaced the software, the waking up problem appeared fixed for a few days, but the battery life had not improved. Now the waking up problem is starting to return.
    It is very annoying and somewhat embarrassing when you are with a client and go to make a call and your shiny flashy new Iphone 5 won't even light up. Especially when you have to borrow your clients Nokia.... 

    My best bet would be to restore the phone. Back it up to itunes, and then reset it Factory settings. This way, any corrupt software will be removed, and you can start fresh. Make sure you back it up first. By the sounds of it, you are using the phone for business and probably need the data from it. Hope this helps!

  • Best target format to use for importing less-than-cinema-quality video?

    I shot 4.5 hours of conference video on an AVCHD consumer camera. The original footage uses about 14.5 GB on the camera's SD card. The video was shot at 1440 x 1080, 16 x 9.
    When I do a log and transfer, the files balloon to 250 GB and are saved as Apple ProRes 422 by default.
    Since this is just conference footage, it doesn't to have the highest quality. I have no need for Apple ProRes 422.
    If possible, here's what I'd like to do:
    1) import it using a format that gives me at least the same quality as the original video
    2) keep the file size as close as possible to the original file size
    3) Keeps the original 1440 x 1080 size.
    4) Is a format that can still be edited in the Final Cut 7 timeline.
    5) Saves me the hassle of having to run Compressor on the huge 250GB files.

    Thanks.
    I tried LT setting. It created files about 30% smaller than those created with the normal ProRes setting. So instead of 250 GB, I have 160 GB files. Better, but I was hoping more like 20 GB files.
    I'm going to try giving iMovie a shot and see what kind of file it generates.
    What I'm mostly interested in doing is providing an archival copy of the full video for historical purposes. Something that could fit on a couple of DVDs or placed on a hard drive or cloud storage system without eating up huge amounts of space. Also, something a historian could reasonably be expected to open 20 years from and have it still look reasonably good on his/her 6000 x 4000 monitor.

  • New Magic Mouse uses batteries in less than a day

    A couple of weeks ago I got my beautifull 27" mac will all (except 16 GB of ram) the options.
    Overall it has been a unquestionable investment.
    However, the magic mouse has had unacceptable battery performance.
    The original batteries only lasted just over 2 weeks and I was forced to replace them just a couple of days ago.
    Throughout their life the mouse presented mixed signals about battery percentage, after a few days of use it suddenly reported low battery (the day before it said 100%) and then after moving the batteries around it returned functionality.
    I had to repeat this "fix" untill the batteries were totally dead.  earlier today I had to exchange the second pair of batteries, which had a supprisingly short battery-life.
    After hardly using the mouse today because I was away filming I returned to find the mouse batteries dead eventhough they were brand new.
    I have searched the forum and found similar problems of short battery life but less then a day of hardly any use is simply unnacceptable!!
    Does anyone have any suggestions on what could be causing the problem?
    If not then I'm going have no choice but to ask for a replacement.
    Thanks,
    Arek Sredzki

    Hello:
    First, battery life is a direct function of usage and the type of batteries in use.
    Throughout their life the mouse presented mixed signals about battery percentage, after a few days of use it suddenly reported low battery (the day before it said 100%) and then after moving the batteries around it returned functionality.
    Inaccurate readings (in system preferences) is a known problem.  I have found that a Dashboard widget (mighty monitor) is reasonably accurate.
    If usage is a problem, I suggest you consider rechargeables.  I use 2450 mAh Energizers and a 15 minute Energizer charger.  Rechargeables do not last as long as Lithium batteries, but they are available on short notice and are environmentally friendly.
    Barry

  • Case statements without the need for Greater than less than

    i have a problem where i have 6 different priorities. from high to low:
    A-A
    A-B
    A-C
    B-A
    B-B
    B-C
    One field on the database (default) holds the default priorities. this value in this example is (A-B)
    the problem is determinig wether the (actual) value, in this example (A-C) is an "UPGRADE" or a "DOWNGRADE" from the default.
    the actual value may change, the default value never changes, so i need to determine if the actual value has increased in priority or decreased in priority?
    i cant use the > or < functions obviously, what i have come up with so far is:
    (case when actual = 'A-A' AND ((select default from table x) IN ( 'A-B','A-C','B-A','B-B','B-C','C-A','C-B','C-C')
    when actual = 'A-B' AND ((select default from table x) IN('A-C''A-C','B-A','B-B','B-C','C-A','C-B','C-C') THEN 'UPGRADE' ELSE 'DOWNGRADE' END)
    is this the best way to do a query like this ????

    try adding control to form to let them select [ <, <=, >,>=] via a drop down and enter a value, then pass these items to a function that returns a sql select...
    Report Region source would be function returning sql select..
    Thank you,
    Tony Miller
    Webster, TX

Maybe you are looking for