Two values differ Mager perspsective Oracle?

Hello, I have two values that are apparently the same.

Select distinct record_mod from T_NSW_STG_LEG_SCHEDULE t where T.SRC_CONT_ID = '142590080818000000000' and t.schd_amt = 293.34;

the result is

RECORD MOD_
3
3

Why if the values are the same oracle saysthe are different. The only thing I know is that they are in different partitions.

Thanks in advance!

>
the data type is a NUMBER 2 positions in length
>
Change the query slightly to eliminate any formatting problems

After the release of

SELECT DISTINCT DUMP (record_mod)
  FROM T_NSW_STG_LEG_SCHEDULE t
 WHERE T.SRC_CONT_ID = '142590080818000000000' AND t.schd_amt = 293.34;

If that produces two identical lines, then you have a bug.

What is your version of Oracle 4-digit?

Tags: Database

Similar Questions

  • How to merge two values of resource bundle?

    Hi all

    JDev worm: 11.1.1.7

    I want to merge two values of resource bundle... How to do?

    like this #{expr? str1: str1 + str2}

    I tried like below and used some features of jstl... but no use did not work... got a parse exception, exception of compilation, etc...

    < af:outputText value = "#{row.accountName eq 'AccountName9'?" {resource ['LBL_WELC']: resources ["LBL_WELC"] + resource ['LBL_HOME']} "/ >"

    I would like to know how to do this?

    Kind regards

    Gopi

    The outputtext above is an example, I can use diff bundle keys like below,

    The principle is the same

    Dario

  • return two values of columns via Javascript

    For the same purpose as:

    OnClick = "$s ('P1_DEPTNO', #DEPTNO #); return false; »

    to return a value from column via javascript, is it possible to return 2 values? Example:

    OnClick = "$s ('P1_DEPTNO', #DEPTNO #); $s ('P1_EMP, #EMPLOYEE #); return false; »

    Thank you all :)

    Max

    Maxime Carrier wrote:
    Sorry for the wrong question form, I'm not an English speaker, so I try my best to make sentences clear.

    My goal is like this in this issue: Insert the value of a column in the report in a page with JavaScript element - 2?

    My Apex version is: 4.0.2.00.06
    My DB is: Oracle 11G
    My browser: IE 7

    I'm trying to save two values when I click on a link in a report. I will use these values in which the declaration of another report. The content of the second report will depend on the link I clicked in the 1st. It will change dynamically without reloading the entire page.

    Standard or interactive report?

    Where is the defined link? Column link IR? The column link? HTML embedded in the report query?

    One of the two values is not a number.

    Use quotes around chains of substitution of the column as shown above.

  • How to make the sum of the two values in the text boxes?

    Hi people,
    Am a beginner in oracle 9i with forms 6i forms.using. I want to add two values in two text boxes and the result should be displayed in the third text box.
    How to write code in when the button is pressed the trigger of a push button? pls suggest me.

    Concerning
    VIDS

    I have not problem
    Better you recreate the new form

    Block3
    1 button
    2. item1
    3 item2
    4 point 3.

    every article must be in a canvas

    what button to trigger
    writing and code test it again.

    give point 1 only
    give point 2 only
    Now press the button
    output should on the 3rd point.

    Check and return back.

    Iqbal

  • Trying to force a value of the type 'oracle.jbo.domain.Number' type 'java.

    Hi, I am very new in the world of JDeveloper and I get the following error:
    Trying to force a value of the type 'oracle.jbo.domain.Number' to type 'java.lang.Long.

    I'm trying to multiply two input values, say, 3.5 and 1000.
    It corresponds to a field in the commission which can be modified by the end user (this is why I need to store the value). The arithmetic operation is just a "recommendation" of the value that the end user will be finally type.

    In the jspx (which is using PPR) the button submit, I have the following code in the determination of the value of the field:
    #{bindings.CommProv.inputValue * links.} Monto.inputValue}

    If someone could give any help on this, I would really appreciate it.

    Kind regards
    Max.

    Max,

    Try this:
    #{bindings.CommProv.inputValue.bigDecimalValue * links.} Monto.inputValue.bigDecimalValue}

    This will convert your oracle.jbo.domain.Number values to a form that can be multiplied.

    Hope this helps
    Blaise

  • I have a column with two values, separated by a space, in each line. How to create 2 new columns with the first value in a column, and the second value in another column?

    I have a column with two values, separated by a space, in each line. How do I create 2 new columns with the first value in one column and the second value in another column?

    Add two new columns after than the original with space separated values column.

    Select cell B1 and type (or copy and paste it here) the formula:

    = IF (Len (a1) > 0, LEFT (A1, FIND ("", A1) −1), ' ')

    shortcut for this is:

    B1 = if (Len (a1) > 0, LEFT (A1, FIND ("", A1) −1), ' ')

    C1 = if (Len (a1) > 0, Member SUBSTITUTE (A1, B1 & "", ""), "")

    or

    the formula of the C1 could also be:

    = IF (Len (a1) > 0, RIGHT (A1, LEN (A1) −FIND ("", A1)), "")

    Select cells B1 and C1, copy

    Select cells B1 at the end of the C column, paste

  • Take the time between two values

    Hi people,

    I have a problem and I know idea how to solve... I need help.

    The problem is I want to take the time between two values max as you can see in the chart.

    For example, in the image that I have add

    4.5 - 1 840 = 2.66

    And enter this value in the 'time between mostra '.

    It's that I want...

    But what I think is very complicated, because I don't know how to take the time correctly and does remove...

    Thank you very much

    Any solution?

    Hi jocuma,

    I tried something and hope that helps u.

    Just create two arrays of temperature and voltage. First of all, I'll get the value of the voltage when it is more of a certain value and that same index to get the value of time and store in the shift register.

    When I get the second higher than the limit value, I'll get time and subtract the previous value.

  • Get two values to a selectedItem in a list

    Hi I have a list view and I want to use two of the elements of the selectedItem, ListItemData.coord.lat and ListItemData.coord.lon, that's what I have so far

    ListView {
            dataModel: jsonlist.model
    
            listItemComponents: [
                ListItemComponent {
                    type: "item"
                    StandardListItem {
                        title: ListItemData.name
                        description: ListItemData.sys.country
                        imageSpaceReserved: false
                    }
                }
            ]
            onTriggered: {
                latitude = dataModel.data(indexPath)
                longitude = dataModel.data(indexPath)
                console.debug("Latitude: " + latitude, "Longitude: " + longitude);
                var selectedItem = dataModel.data(indexPath);
    

    I know, it isn't fair, but it's just the idea if you can point me in the right direction, I do strings of two goods, latitude and longitude so I can put the value of the selectedItem and then use in the c add function to insert a new page, so how can I use two values of selectedItem

    {To ListView
    dataModel: jsonlist.model
            
    listItemComponents:]
    {ListItemComponent}
    type: 'point '.
    {StandardListItem}
    Title: ListItemData.name
    Description: ListItemData.sys.country
    imageSpaceReserved: false
    }
    }
    ]
    onTriggered: {}
    Latitude = dataModel.data)
    Longitude = dataModel.data (row)
    Console.Debug ("Latitude:" + latitude, "Longitude:" + longitude);
    selectedItem = dataModel.data (row) var;
                
    var createdControl = pageDefinition.createObject)

    in your building onTriggered, try the following,

    var selectedItem = dataModel.data(indexPath);var latitude = selectedItem.coord.latvar longitude = selectedItem.coord.lngconsole.log("Latitude: " + latitude + ", " + "Longitude: " + longitude)
    
  • Is it possible to return the largest (highest) value in a range of values (not only the higher of the two values)?

    HI -.

    waiting for the Maximum()< x >, < y >) function to have the ability to determine the largest more of two values.

    EG - Maximum()< x > < y >, < z >)

    Is there another way to do this (without a custom function)?

    Thank you, James.

    With independent attributes (i.e. X, Y and Z are not the values of the attribute even through a set of entities), each attribute must be explicitly referenced and the simplest solution is to nest calls to competition.
    For example: Maximum (, Maximum (,))

    Do the same with an arbitrary number of values of attributes associated with the same entity (i.e. 'age in years' as an attribute of 'person') you can use the InstanceMaximum or equivalents of natural language that returns more high/more recent value of an attribute from entity level all instances of the entity.

    InstanceMaximum (, )

    who is the most recent for all [of]

    who is the greatest for all [of]

    last of all for

    the largest of for (all of | all | )

    There are also the following to constrain the set of instances of entity to a subset based on a condition and get the most out of this subset (i.e. ' age where the person is a woman')

    InstanceMaximumIf (, , )

    who is the most recent for all [of] for which it is true that

    who is the greatest for all [of] for which it is true that

    the largest of for (all of | all | ) for which it is true that


    A similar feature exists for at least and the sum.  See the Guide to political use of automation for details and examples.

  • Retrieving values from XML in Oracle 9i - part II

    Hello

    regarding my previous post retrieving values of XML in Oracle 9i , I now have a different requirement.

    Assuming that the XML is as follows:

    <? XML version = "1.0" encoding = "UTF-8"? >

    " < GenericRequest xmlns =" http://webservices.mysite.com/test "xmlns:ns =" " http://webservices.mysite.com/test/NS "xmlns:ns1 =" " http://webservices.mysite.com/test/ns1 "xmlns:ns2 =" " http://webservices.mysite.com/test/ns2 ">

    < ns1:order >

    < ns1:orderItems >

    < ns1:orderItem >

    create < ns1:operation > < / ns1:operation >

    < ns1:brickId > TST002 < / ns1:brickId >

    < ns1:brickAttributes >

    < ns1:attribute >

    < ns2:name > COUNTRY < / ns2:name >

    < ns2: value > U.S. < / ns2: value >

    < / ns1:attribute >

    < ns1:attribute >

    < ns2:name > CUST_ID < / ns2:name >

    < ns2: value > 12345 < / ns2: value >

    < / ns1:attribute >

    < ns1:attribute >

    < ns2:name > CITY < / ns2:name >

    < ns2: value > New York < / ns2: value >

    < / ns1:attribute >

    < / ns1:brickAttributes >

    < / ns1:orderItem >

    < ns1:orderItem >

    Update < ns1:operation > < / ns1:operation >

    < ns1:brickId > TST001 < / ns1:brickId >

    < ns1:brickAttributes >

    < ns1:attribute >

    < ns2:name > COUNTRY < / ns2:name >

    < ns2: value > U.S. < / ns2: value >

    < / ns1:attribute >

    < ns1:attribute >

    < ns2:name > CUST_ID < / ns2:name >

    < ns2: value > 22222 < / ns2: value >

    < / ns1:attribute >

    < ns1:attribute >

    < ns2:name > CITY < / ns2:name >

    < ns2: value > Los Angeles < / ns2: value >

    < / ns1:attribute >

    < / ns1:brickAttributes >

    < / ns1:orderItem >

    < / ns1:orderItems >

    < / ns1:order >

    < / GenericRequest >

    As you can now see the XML contains several elements of the order. For each agenda item, I have a single operation and a brick_id. Then, for each item on the agenda, I have a list of brickAttributes (name and value).

    How can I get something like that?

    OPERATION BRICK_ID NAME VALUE

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

    create TST002 COUNTRY WE

    create TST002 CUST_ID 12345

    create TST002 New York CITY

    update of TST001 COUNTRY United States

    Update TST001 CUST_ID 22222

    Update TST001 CITY Los Angeles

    Version of database is 9.2.0.8

    SELECT * FROM version of v$.

    BANNER

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

    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64 bit Production

    PL/SQL Release 9.2.0.8.0 - Production

    CORE Production 9.2.0.8.0

    AMT for HP - UX: 9.2.0.8.0 - Production Version

    NLSRTL Version 9.2.0.8.0 - Production

    Kind regards.

    Alberto

    Response of Odie, result is that extend

    with sample_data as (
    select xmltype(
    '
    
              
                
                  
                    create
                    TST002
                    
                      
                        COUNTRY
                        US
                      
                      
                        CUST_ID
                        12345
                      
                      
                        CITY
                        New York
                      
                    
                  
                  
                    update
                    TST001
                    
                      
                        COUNTRY
                        US
                      
                      
                        CUST_ID
                        22222
                      
                      
                        CITY
                        Los Angeles
                      
                    
                  
                
              
    ') xmldoc
    from dual
    )
    select extractvalue(value(x), 'ns1:orderItem/ns1:operation', 'xmlns:ns1="http://webservices.mysite.com/test/ns1"') as operation
         , extractvalue(value(x), 'ns1:orderItem/ns1:brickId', 'xmlns:ns1="http://webservices.mysite.com/test/ns1"') as brick_id
         , extractvalue(value(y), 'ns1:attribute/ns2:name', 'xmlns:ns1="http://webservices.mysite.com/test/ns1", xmlns:ns2="http://webservices.mysite.com/test/ns2"') as name
         , extractvalue(value(y), 'ns1:attribute/ns2:value', 'xmlns:ns1="http://webservices.mysite.com/test/ns1", xmlns:ns2="http://webservices.mysite.com/test/ns2"') as value
    from sample_data t
       , table(
           xmlsequence(
             extract(
               t.xmldoc
             , '/GenericRequest/ns1:order/ns1:orderItems/ns1:orderItem'
             , 'xmlns="http://webservices.mysite.com/test", xmlns:ns1="http://webservices.mysite.com/test/ns1"'
             )
           )
         ) x
       , table(
           xmlsequence(
             extract(
               value(x)
             , 'ns1:orderItem/ns1:brickAttributes/ns1:attribute'
             , 'xmlns:ns1="http://webservices.mysite.com/test/ns1"'
             )
           )
         ) y
    ;
    

    As shown, it simply retrieves to a higher level object that repeats once in table x and happening at the table there, which returns the expandable nodes.  The join is managed by value (x) in the second simple table.  It assumes that there is always 1 or several nodes of ns1:attribute in each ns1:orderItem.

  • Count the number of records between two values of keys (BTREE)

    How can I count the number of keys between two values?

    I use python driver and BTREE access method.

    = >

    Ideally, what I want is a set of whole time series data (intervals may change) to a given number of points on average. The keys are timestamps and the values are the data that it takes on average. I need to count the number of records between two timestamps so that I can divide this figure by the number of points I need and data on average. What is the best way to do it?  Or should I keep the timestamp constant intervals and use the RECNO access method?

    Thank you
    (first post btw... and why is there not a lot of people at stackoverflow that answering the questions of Berkeley DB?)

    BDB is an integrated db and there no internal counters or statistics you might grap to use for this.    You will have to do it manually.

    You can create a cursor, grap the records you want, whenever you get the next card that you bump a counter.

    If you are using RECNO, you can use a slider to obtain the number of registration (DB_GET_RECNO), and if all that you data is in

    sequentail records with no missing documents, you can find the total number of take the last rec #-original rec # + 1 to get a count.

    If you pass the SQL API, you can issue a SQL query to give you a count.  Select count (*) where...

    As you enter the data anyway, so better perhaps to count records as you go along.

    Thank you

    Mike

  • How to swap two values without using the third variable using the procedure

    How to exchange the two values without using the third variable using the procedure?

    In a procedure using two mode we pass two values A = x and B = y, and let us pass parameters to receive the output has A = y and B = x without using the third variable

    Published by: Millar on August 19, 2012 11:23

    Your question doesn't seem wise. As written, there is no reason to a third variable, just

    CREATE OR REPLACE PROCEDURE(
      x IN number,
      y IN number,
      a OUT number,
      b OUT number
    )
    AS
    BEGIN
      a := y;
      b := x;
    END;
    

    If it's an interview question, I suspect that the intention was that you had two settings IN OUT and you wanted to swap the values without the help of a third variable.

    Justin

  • Retrieve two values of column in a table

    Hi I want to retrieve two values of column in a table and store the values as a single column value in another table... How to do with it?

    Use in this way:
    Insert in tab2 (col1) select col1 | col2 from tab1;

  • How to exchange the two values in the same column by using the UPDATE?

    Hi all

    I have a table named TEST, and it has a column called A.

    and has values as follows:

    A
    ------
    10
    20
    30
    40
    50

    My question is how to move '10' instead of '20' and '20' instead of '10' in the column? This permutation is only for the first two values (10, 20)

    Note: Must be only in SQL, not in PLSQL.

    Any advice?

    Thanks in advance?

    Update
    test
    the value a = decode(a,10,20,20,10,a);

    Alexander gelin
    http://nimishgarg.blogspot.com/

  • Multiplies two values of two different columns and display in cold fusion!

    Hi all

    I have a table book_sale
    Topic | quantity | rate
    ===================
    Science | 5. $25.00
    Mathematics | 7. $70.00
    Reading | 20. $2.30
    ==========================================================
    I tried to code
    < cfquery name = "get_saleamount" datasource = "Book" >
    Select the object, the quantities, rates
    of book_sale
    < / cfquery >

    < table >
    < b >
    < /Th > < th > topic
    < /Th > < th > quantity
    < /Th > < th > rates
    Proceeds from the sale of < /th > < th >
    < /tr >
    < cfloop query = "get_saleamount."
    < b >
    < td > #Subject # < table >
    < td > #Quantity # < table >
    < td > #Rate # < table >
    < td > #Quantity # * #Rate # < table >
    < /tr >
    < / cfloop >
    < /table >

    The multiplication operation did not work code above. I want to calculate sale_amount = quantity * note and display the results in a table. Please give me some advice how to multiply two values from database and display them in a table above. Thanks in advance.




    If you want to exit, then simply change your
    #Quantity # * #Rate #.
    TO
    #Quantity * rate #.

    but you can do it at the level of the database, if you have db (most do so):

    Select the object, the quantities, rates, (amount * rate) AS ttl_cost
    of book_sale

    ...


    #Subject #.
    #Quantity #.
    #Rate #.
    #ttl_cost #.

    Azadi Saryev
    SABAI - Dee.com
    http://www.SABAI-Dee.com/

Maybe you are looking for