I get an incorrect value for the MIN function?

Hello

I get an incorrect value when I run the query below. Here, I'm getting the minimum of the two values. I use the function table of pipeline. This split function the comma separates into single value string. Actuatlly of the sub query min value is 956.23. But he's back 1002.56 as min value. How is it possible?

Other wise, is there another way to get the min of comma-separated string value?
SELECT  MIN(COLUMN_VALUE)
FROM    TABLE(get_string_comma('956.23,1002.56',','));

Hello

I understand your situation, try:

SELECT  MIN(to_number(COLUMN_VALUE))
FROM    TABLE(get_string_comma('956.23,1002.56',','));

Kind regards

Tags: Database

Similar Questions

  • Capabilities.screenResolutionY returning an incorrect value for the iPhone5

    Hello

    I'm trying to make gui adjustments based on the values returned by flash.system.Capabilities. However, when I test on the iPhone5 in portrait mode the values returned are screenResolutionX: '640' and screenResolutionY: '960'. I am compiling with air 3.5 in renderMode: "gpu" and put the swf metadata tp widthPercent: 100% and the heightPercent: 100%. I'm doing something wrong?

    Thank you

    CJ

    To get the right size, you will need to include a splash screen for the size of the iPhone 5, with the name of "[email protected]". This image would be 640 x 1136, and when he sees iOS, it knows that you want the iPhone 5 to use the entire screen.

  • Cannot get or point value for the LOV after::AddRow()

    I spent hours on this...

    I just want to add a new line in a tabular presentation and set a default value to a column with column attributes, display as value ' Select list (named LOV).

    Simply, I don't find a way to make it work.

    I have a default value that is stored in a hidden page element, P6_ORGANIZATION_PHONE_TYPE. Add online functionality is as follows:
    var currOrganization = $v('P6_SELECT_ORGANIZATION');
    var currPhoneType = $v('P6_ORGANIZATION_PHONE_TYPE');
    
    addRow();
    
    hideDefaultedColumns();
    
    $('input[name="f02"]:last').val(currOrganization);
    $('input[name="f05"]:last').val(currPhoneType);
    F05 indicates the type of phone that I'm trying to define. If I do any changes other than to change the view type to TextField, this code works fine. However, when it is 'List (named LOV) selection' I can not put the value or find a way to simply get a handle to the object. It's $('input[name="f05"]:last') gives "undefined".


    Help, please! This should be the easiest thing in the world.

    -Joe

    Sorry to be a bit slow to get back to you on that. What I think you need to do is:

    addRow();
    $s($('select[name="f05"]:last')[0].id, $v('P6_ORGANIZATION_PHONE_TYPE'));
    

    User.user $('select[name="f05"]:last') [0] Gets the id of the last select element in the table. The $s function Apex can define elements any kind will set the value of the option contained in P6_ORGANIZATION_PHONE_TYPE.

    Rod West

  • stage.stageHeight gave an incorrect value for the iPhone 5.

    Hi all

    We tested our existing applications on the iphone 5 and found that the scene. StageHeight is still given the value of the iphone 4 960 instead of 1136.

    Our existing application was built in FB4.6/Air3.1.

    There is no work around for this problem.

    Thanks in advance.

    In order to target the iPhone 5, you will need to use AIR 3.5 beta or AIR 3.4

    pointing to iOS SDK 6. Be sure to include the [email protected] of

    trigger the size of iPhone 5. In other words, the application shall be

    targeting the iOS SDK 6 and have the new png by default to trigger the full

    size on the iPhone 5.

    3.5 AIR beta includes the bits that target iOS 6 SDK, but you can

    target iOS 6 3.4 air using the external path of SDK in the package

    Prompt DONKEY in FB 4.6

    http://labs.Adobe.com

    iBrent

  • Start little problem-ORA-07446: sdnfy: incorrect value "for parameter

    what I am doing wrong?

    SQL > startup nomount pfile=/oracle/product/9.2.0.6/dbs/initncersp.ora;
    ORA-00444: background process 'PMON' failed during startup
    ORA-07446: sdnfy: incorrect value "for the parameter.

    -rw - r - r - 1 oracle dba 466 Jan 21 11:11 initncersp.ora
    Oracle: tulppwradb02:ncersp > pwd
    /Oracle/product/9.2.0.6/DBS

    *************
    Oracle: tulppwradb02:ncersp > vi initncersp.ora
    "initncersp.ora" 127 lines, 3788 characters
    ##############################################################################
    # Copyright (c) 1991, 2001, 2002 by Oracle Corporation
    ##############################################################################

    ###########################################
    # Archive
    ###########################################
    Log_archive_dest = ' / archive_nmarket/ncersp.
    log_archive_format='arch.ncersp.%s_%t.log'
    log_archive_start = true

    ###########################################
    IO and cache memory #.
    ###########################################
    DB_BLOCK_SIZE = 8192
    db_cache_size = 25165824
    db_file_multiblock_read_count = 16
    DB_FILES = 400

    ###########################################
    # The library Cache and sliders
    ###########################################
    open_cursors = 500

    ###########################################
    # Identification of the database
    ###########################################
    db_domain =""
    db_name = ncersp
    # Global Naming - apply as a dblink has same name as the db, that it connects
    global_names = TRUE

    ###########################################
    # Diagnostic and statistical
    ###########################################
    background_dump_dest = / oracle/admin/ncersp/bdump
    core_dump_dest = / oracle/admin/ncersp/cdump
    user_dump_dest = / oracle/admin/ncersp/udump
    TIMED_STATISTICS = TRUE

    ###########################################
    # Configuration file
    ###########################################
    control_files = ("/ db01/oradata/ncersp/ncerspcontrol01.ctl","/db01/oradata/ncersp/ncerspcontrol02.ctl", "/ db01/oradata/ncer")
    SP/ncerspcontrol03. CTL")

    ###########################################
    # Identification of the instance
    ###########################################
    instance_name = ncersp

    ###########################################
    # Work queue
    ###########################################
    JOB_QUEUE_PROCESSES = 0 #zero for maintenance


    ###########################################
    # Optimizer
    ###########################################
    hash_join_enabled = TRUE
    #query_rewrite_enabled = TRUE
    #query_rewrite_integrity = "trusted."
    #star_transformation_enabled = FALSE

    ###########################################
    # Pools
    ###########################################
    JAVA_POOL_SIZE = 51200
    LARGE_POOL_SIZE = 8388608
    shared_pool_size = 55343360

    ###########################################
    # Process and Sessions
    ###########################################
    process = 100

    ###########################################
    Recovery and # redo Log
    ###########################################
    fast_start_mttr_target = 300

    ###########################################
    # Security and audit
    ###########################################
    Remote_login_passwordfile = 'EXCLUSIVE '.
    AUDIT_TRAIL = DB

    ###########################################
    # Sort, hash joins, index Bitmap
    ###########################################
    pga_aggregate_target = 25165824
    sort_area_size = 1024000

    #######################################################
    # Need Varification for under parameters of primary s/n
    #######################################################
    ###########################################
    # Various
    ###########################################
    aq_tm_processes = 1
    compatible = 9.2.0.0.0
    log_buffer = 32768
    log_checkpoint_interval = 10000
    log_checkpoints_to_alert = TRUE
    max_dump_file_size = '10240'
    OS_ROLES = FALSE
    remote_os_roles = FALSE
    os_authent_prefix = "

    ###########################################
    # System managed Undo and Rollback Segments
    ###########################################
    UNDO_MANAGEMENT = AUTO
    UNDO_RETENTION = 10800
    undo_tablespace = UNDOTBS1
    #utl_file_dir ='* '



    ###########################################
    # OLD SETTINGS DB
    ###########################################
    #db_block_buffers = 550
    #resource_limit = true
    #parallel_max_servers = 5 # SMALL
    #global_names = TRUE
    #job_queue_interval = 60

    There may be additional or better clues in file alert_SID.log

  • How we can get statistics current preferences for the t value specified

    We use DBMS_STATS. Procedure SET_TABLE_PREF to set preferences to statistics on the table specified in the specified schema.
    How we can get statistics current value of preferences for the specified table?

    Of course, you can use the DBMS_STATS. Function GET_PREFS to check the attributes of statistics.
    For example, to collect statistics of large properly partitioned tables, you can change the INCREMENT value:

    For each, check that the current value of the table:

    SQL> select dbms_stats.get_prefs('INCREMENTAL','SH','COSTS') from dual;
    
    DBMS_STATS.GET_PREFS('INCREMENTAL','SH','COSTS')
    --------------------------------------------------------------------------------
    FALSE
    

    Change the value for the table in question:

    SQL> exec dbms_stats.set_table_prefs('SH','COSTS','INCREMENTAL' ,'TRUE') ;
    PL/SQL procedure successfully completed.
    
    SQL> select dbms_stats.get_prefs('INCREMENTAL','SH','COSTS') from dual;
    DBMS_STATS.GET_PREFS('INCREMENTAL','SH','COSTS')
    --------------------------------------------------------------------------------
    TRUE
    
  • failed to create value for the message Analyzer "at line 54.

    I get the following error, can someone please?

    failed to create value for the message Analyzer "at line 54.

    Hi ejpeppjep,

    Check if this article helps you fix the problem: http://support.microsoft.com/kb/823768

    If the problem persists, we recommend that you try the following steps and check the result.
    Step 1: a. Click Start, click Run, type cmd and click ok.
    b. at the command prompt, type sfc/scannow and press ENTER.
    c. once the analysis is complete, restart the computer and check if the problem persists.

    Note: You will be asked to insert the Windows XP disk, if a file is missing.

    For more information, see Description of Windows XP System File Checker (Sfc.exe)

    Step 2: If the problem persists, restore the computer to an earlier time
    see How to restore Windows XP to a previous state .

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Why the different values for an analytic function of the same group/game

    I have the suite of table I'll be using.

    Select * from table1;

    REC_ID | STATUS | DATE_FROM | DATE_TO

    1. C | 7 January 2015 |

    2. H | December 3, 2014. 6 January 2015

    3. H | October 3, 2014. December 2, 2014

    4. H | May 30, 2014. October 2, 2014

    5. H | May 29, 2014 | May 29, 2014

    6. H | April 16, 2014 | May 28, 2014

    7. H | Tuesday, April 25, 2007 April 15, 2014

    INSERT statement if you need.

    TOGETHER TO DEFINE

    CREATE THE TABLE1 TABLE:

    (

    NUMBER OF REC_ID,

    VARCHAR2 (1 BYTE) STATUS NOT NULL,.

    DATE_FROM DATE NOT NULL,

    DATE OF DATE_TO

    );

    Insert into TABLE1

    (REC_ID, STATUS, DATE_FROM)

    Values

    (1, 'C', TO_DATE (7 JANUARY 2015 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'));))

    Insert into TABLE1

    (REC_ID, STATUS, DATE_FROM, DATE_TO)

    Values

    (2, 'H', TO_DATE (3 DECEMBER 2014 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), TO_DATE (6 JANUARY 2015 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'));))

    Insert into TABLE1

    (REC_ID, STATUS, DATE_FROM, DATE_TO)

    Values

    (3, 'H', TO_DATE (3 OCTOBER 2014 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), TO_DATE (2 DECEMBER 2014 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'));))

    Insert into TABLE1

    (REC_ID, STATUS, DATE_FROM, DATE_TO)

    Values

    (4, 'H', TO_DATE (MAY 30, 2014 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), TO_DATE (2 OCTOBER 2014 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'));))

    Insert into TABLE1

    (REC_ID, STATUS, DATE_FROM, DATE_TO)

    Values

    (5, 'H', TO_DATE (29 MAY 2014 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), TO_DATE (29 MAY 2014 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'));))

    Insert into TABLE1

    (REC_ID, STATUS, DATE_FROM, DATE_TO)

    Values

    (6, 'H', TO_DATE (APRIL 16, 2014 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), TO_DATE (28 MAY 2014 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'));))

    Insert into TABLE1

    (REC_ID, STATUS, DATE_FROM, DATE_TO)

    Values

    (7, 'H', TO_DATE (APRIL 25, 2007 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), TO_DATE (APRIL 15, 2014 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'));))

    COMMIT;

    I will exercise more analytical query...

    Select rec_id date_from, date_to, status,

    min (date_from) over (partition by order of status by date_from desc) min_dt_from_grp,

    ROW_NUMBER() over (partition by order of status by date_from desc) rownumberdesc,

    ROW_NUMBER() over (partition by order of status by ASC date_from) rownumberasc

    FROM table1;

    the query result

    REC_ID | DATE_FROM | DATE_TO | STATUS | MIN_DT_FROM_GRP | ROWNUMBERDESC | ROWNUMBERASC

    1. 7 January 2015 | C | 7 January 2015 | 1. 1

    2. December 3, 2014. 6 January 2015 | H | December 3, 2014. 1. 6

    3. October 3, 2014. December 2, 2014 | H | October 3, 2014. 2. 5

    4. May 30, 2014. October 2, 2014 | H | May 30, 2014. 3. 4

    5. May 29, 2014 | May 29, 2014 | H | May 29, 2014 | 4. 3

    6. April 16, 2014 | May 28, 2014. H | April 16, 2014 | 5. 2

    7. Tuesday, April 25, 2007 April 15, 2014. H | Tuesday, April 25, 2007 6. 1

    If you look at the output above, it dates back in the min_dt_from_grp column.

    MY question is if the analytical function calculates for a particular/set group, which is by statute and for what min (date_from) partition is 25-apr-2007 for the GROUP H (Status column), then why I have different values returned by the query above in the min_dt_from_grp column.

    Hello

    Because you have specified an ORDER BY clause for the analytical function. In doing so, you calculate the rows on a window. Since you have not specified a windowing clause, the default applies:

    RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW

  • [ADF, JDev12.1.3] (How to set values for the attributes 1) to create a file and 2) committing to the database?

    Hallo,

    in my tables and forms (created from VO istances) there are some areas for which, insert and update, I calculate and set the value programmatically when a record is created or updated.

    In some cases, I put the necessary values using the 'CreateWithParams' in the workflow diagram...

    In some other ones, I associate an action, a bean, a created button drag-and - drop operation 'CreateWithParams' of the istance VO...

      public String cwpButton_action() {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = bindings.getOperationBinding("CreateWithParams");
        // here I calculate and set the needed params
        // ...
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
          return null;
        }
        return null;
      }
    

    And is ok if I can calculate the values for the attributes before a new record is created.

    But the approach that I have used to define the attributes (for new and updated records) whose value should be caluclated after the user has filled in the fields, before committing to the database?

    Thank you

    Federico

    Federico,

    Let me first tell you that our code is activity masking errors (the cache instead of working on them).

    1. If (! operationBinding.getErrors () .isEmpty ()) {}
    2. Returns a null value.
    3. }
    4. Returns a null value.

    This means that you do not check the errors at all. You must at least print a log with the error message, you receive, if you get one!

    To solve your problem, you override the method prepareForDML() of the entity or entities in question. You can calculate and set the necessary attributes until they get engaged in the doDML(). Do not use doDML() because it is too late in the life cycle.

    Timo

  • How to add the default value for the "Full - Text Search" box

    Hi all

    I am looking for the ability to add a default value for the "Full text search" box in the search form.

    Example:

    When the user accesses the search page it get default values for some fields (defined in the rule as default values) such as

    xField1 = txt1 and xFiel2 = txt2.

    and Furthermore we need full-text = Hello world.

    Is this possible?

    Another way that we use is to open the search by URL with coreContentOnly = 1 as a form:

    http:// < Server >/cs/idcplg? IdcService = GET_DOC_PAGE & to Action = GetTemplatePage & to Page = STANDARD_QUERY_PAGE & coreContentOnly = 1 & to xField1 = txt1 & to xFiel2 = txt2

    It is possible to add full-text criteria here? Somethig like: & text = Hello World

    Thank you

    Leon

    It is not possible in a very obvious way, not to mention that it is a rather strange request.  I can't really imagine a realistic use for this case.

    Anyway, without a messy customization, you should provide a default query with an FTX inside element text setting (i.e. "IdcService = GET_DOC_PAGE & Action = GetTemplatePage & Page = STANDARD_QUERY_PAGE & QueryText =Hello World" "")

    To do this in a profile in the secondary effects of the profile section, add the following:

    <$dpPromote("QueryText",>Hello everyone") $>.

  • Syntax to set a default value for the metadata of Web site field

    In my profile, I have a rule where I did the infoOnly metadata xWebSites field and define a default value like this:

    < $dprDefaultValue = # active.xWebSites$ >

    Y at - it something I am doing wrong? Incorrect syntax?

    Thank you!!

    I found this in the documentation of the Site Studio:

    "To identify the ID of an article or a website, open the page to check content on the content server and click Browse next to the"Section of the Web Site." In the window choose the Web Site Section, select your Web site and notice the ID in brackets next to each section (Figure). »

    Can I set the default value for the ID?

  • How can we formulize a threshold value for the maximum number of connections for LDAP?

    Hi all

    We use Sun one DS 5.2 on the Solaris platform.

    How can we define the value for the attribute config "nsslapd-maxconnections" because it depends on allocaated for each process's file descriptors.
    If you please also correcct me if the above statement is false.

    Thank you.

    Hello

    This attribute can be used to limit the number of simultaneous client connections slapd can handle. The main goal is to Cap slapd memory usage.
    By default, this limit is undefined, so slapd can handle up to the number max allowed for the slapd process file descriptor.

    Use only when necessary. You can use the ulimit command to get the limit of the OS settings.

    -Sylvain

  • Default value for the select list of type of form elements

    Hello

    I do not work with Apex that mutch, so this may be a simple question... but I still need help.
    I have a form, in this form, I have a question P19_ONTVANGER_ID, this is based on a LOV.
    This LOV is on a table that has a field of username with the value of APP_USER.
    The table looks like:
    ONTVANGER_ID this is the PK and is going to be the return value from the LOV.
    NAME is the display value for the LOV.
    USERID is the column APP_USER.

    What users would like to get is that if they create a new record, the default value for the P19_ONTVANGER_ID field is their own ONTVANGER_ID.
    But they must also be able to select another user.

    hope there is someone out there that can and will help me.

    Kind regards

    Rob

    APEX 4.0.2 Oracle 10

    Rob-v-M-Gn-Nl wrote:
    Until now, I had, but I need to select the value of the id of the table and the list of selection item appears the corresponding value.

    How can I do this?

    You can select the Type of default value as the body of the PL/SQL function

    and to add something like that

    declare
    v_return number;
    begin
      select your_id
        into v_return
      from your_table
      where some_column = :APP_USER;
     return v_return;
    exception when no_data_found then
     return null;
    end;
    

    http://www.asktheoracle.NET/PLSQL-function.html

  • set the values for the list box item

    Hi all

    How you set values for a checkbox element including more of 2 values.
    You retrieve data from a table, so when you query the table, you get several lines accordingly.
    I think it's something for the table_to_string function, but I don't really know how to use it with bind variables
    Can someone help me?

    Thanks in advance,
    Cleo

    Set the Source of the item box:

    Type of source
    SQL query (separated by semicolons return value)

    Source of value or expression

    /* Something like this, according to your table and columns */
    select course_id
    from student_courses
    where student_id = :p1_student_id
    
  • How to find out the ASCII values for the Spanish character

    Hello

    I had an obligation to maintain the Spanish character and must also always records based on the Spanish character.

    Kindly guide me for below.

    To filter the records that contains Spanish characters?
    To get the ASCII values for the particular column?

    For example, we can find the ASCII value of 'a' using the select syntax ASCII('a') double.

    But I want to find the value of the particular column ASCII values. That is to say. name.
    For example, the customer name is 'Suresh', I want the ASCII values for the entire name of 'Suresh '.

    Please do the necessary help / advice on that.

    Thank you
    Orahar

    To expand on what I said in my first post, you want to do something in this direction:

    with t (thename) as
      (
      select 'Suresh' from dual
      )
    select thename
         , substr(TheName, level, 1)
         , ascii(substr(thename, level))
      from t
    connect by level <= length(thename);
    

    The result of the above query is:

    THENAM S ASCII(SUBSTR(THENAME,LEVEL))
    ------ - ----------------------------
    Suresh S                           83
    Suresh u                          117
    Suresh r                          114
    Suresh e                          101
    Suresh s                          115
    Suresh h                          104
    
    6 rows selected.
    

    Note that the WITH statement is only there to simulate a table for this example. With a table, all you do is get rid of the with and replace it with the name of "t" for your table name (also the name of the column with name column has in your table).

    Finally, I suggest that you post your question with, an example of table and the output you want for PL/SQL forum. There are people out there who will give you all sorts of ways to solve this problem.

    HTH,

    John.

Maybe you are looking for