Wrong precision of multiplication result

Hello!
In same cases the result of multiplication in sql is rounded.For example, if i want to multiplay the numbers:
SQL> select 38.69*0.335616438356164 from dual
the result I get is: 12,985
but it should be: 12,98499999999364
Does anybody know where's the problem? Thanks.
I'm using Oracle 10.2.0.1
Matthew

SQL> set numwidth 10
SQL> select 38.69*0.335616438356164 from dual
  2  /
38.69*0.335616438356164
                 12,985
1 rij is geselecteerd.
SQL> set numwidth 38
SQL> select 38.69*0.335616438356164 from dual
  2  /
               38.69*0.335616438356164
                  12,98499999999998516
1 rij is geselecteerd.Regards,
Rob.

Similar Messages

  • Multiple Quizzes with multiple results (in Captivate 6)

    Hey guys, Thanks for reading!
    Does anyone know if it is possible to do multiple tests with multiple results in captivate 6? or if it is possible to have a pre-test with a quiz, and have separate results for each?
    I've been having a play with captivate 6 and when I put a quiz in, it overrides the results slide for my pre-test.
    Looking at the results slide master properties I can choose to have results for one of my quizzes but not both (even on separate slides):
    It wont even let me insert another slide based on the other result.
    I would like to know if multiple quizzes with multiple results is possible in Captivate 6?, or if I am simply doing something wrong?
    Thanks!

    Sorry for way-late reply...
    It's really more how your LMS handles 'courses' and the terminology it uses.
    Essentially, most often, a 'SCORM Package' (SCO) is a 'course'. I'd rather call each SCO a 'lesson' as, to me, 'courses' should be setup in the LMS with a series of 'Lessons'.
    Regardless of the terminology, each 'SCO' is launched by the LMS and one score can be recorded for it via SCORM.
    So if you need multiple final scores recorded, each of those final scores need to be in their own SCO.
    A common approach is a Pre-Test SCO (or 'lesson', or 'course', whatever term), a 'Content' SCO perhaps with some interspersed scored interactions, and a Post-Test SCO...all three merged together as a 'course' (or whatever term) within the LMS.
    That said, as said, it really all depends on how your LMS handles various SCOs...
    Clear as mud?
    E

  • Stored Procedure With Multiple Result Sets As Report Source : Crosspost

    Hello Everyone,
    I have an issue where i have created a stored procedure that returns multiple result sets
    /* Input param = @SalesOrderID */
    SELECT * FROM Orders TB1
      INNER JOIN OrderDetails TB2 ON  TB1.ID = TB2.ID
    WHERE TB1.OrderID = @SalesOrderID
    SELECT * FROM Addresses
      WHERE Addresses.OrderID = @SalesOrderID AND Addresses.AddressType = 'Shipping'
    SELECT * FROM Addresses
      WHERE Addresses.OrderID = @SalesOrderID AND Addresses.AddressType = 'Billing'
    This is just a quick sample, the actual procedure is a lot more complex but this illustrates the theory.
    When I set the report source in Crystal X to the stored procedure it is only allowing me to add rows from the first result set.
    Is there any way to get around this issue?
    The reason that I would prefer to use a stored procedure to get all the data is simply performance. Without using one big stored procedure I would have to run at least 6 sub reports which is not acceptable because the number of sub reports could grow exponentially depending on the number of items for a particular sales order.
    Any ideas or input would be greatly appreciated.
    TIA
        - Adam
    P.S
    Sorry for the cross post, I originally posted this question [here|/community [original link is broken];
    but was informed that it might be the wrong forum
    Edited by: Adam Harris on Jul 30, 2008 9:44 PM

    Adam, apologies for the redirect, but it is better to have .NET posts in one place. That way anyone can search the forum for answers. (and I do not have the rights to move posts).
    Anyhow, as long as the report is created, you should be able to pass the datasets as:
    crReportDocument.Database.Tables(0).SetDataSource(dataSet.Tables("NAME_OF_TABLE"))
    Of course alternatively, (not sure if this is possible in your environment) you could create a multi-table ADO .NET dataset and pass that to the report.
    Ludek

  • Display a query with multiple results and a little addon :D

    Hello everybody,
    I wanna make a JSP page that displays multiple results from a query.
    I wanna those results to appair in a table, a row each one, and also a little "square radio form buttton" that makes me select rows I wanna delete (with another button at the end)
    any idea?
    Better if you post the code, I'm not a good JSP writer
    thanks everybody for your attention and your time
    Kind regards

    You're right.. I'd post nothing..
    But it's all still in progress and I don't know what to post..
    I understand is really difficult to invent some code without an origin (variables, functions, the bean), but also some general info would be really appreciated,also making a streched example if you can..
    REQUESTS:
    1) I need make a new JSP page, where will be visualize rows returned from a precise query selection
    2)I use Beans, and my idea was to create Bean in JSP, open connection, make the query and create "some kind of FOR cycle" that fills a table, row by row
    3)Every row must got a little "radio button" for a delete selection; the delete function will start when I press a specific button in this page(i'll use a servlet for this function)
    4)The biggest and important trouble is HOW to display multiple rows in the Table

  • SQL Query -How2bring multiple results into one field using Formatted Search

    Hi Everyone
    i am trying to bring in the results of the field dbo.Lot_ITEM.LOT using a formatted search into a row level using the following query:
    SELECT     dbo.LOT_ITEM.LOT
    FROM       dbo.DLN1 INNER JOIN dbo.LOT_ITEM ON dbo.DLN1.ItemCode = dbo.LOT_ITEM.ITEM
    WHERE     dbo.LOT_ITEM.ITEM=$[DLN1.ItemCode]
    however the result of the dbo.Lot_ITEM.LOT field could be more then one value depending on how many lots are assigned for that item
    (for example this query would be similar to assigning batch/serial numbers to an item being despatched - as you can choose multiple batches/serials depending on the quantities available and required and then move from the left to the right side of the selection window) if that makes sense!
    is it possible to bring in the multiple results into one field? and how can i amend the above query to include this?
    Thankyou in advance :o)
    Edited by: Asma Bi on Apr 23, 2008 7:22 PM
    Edited by: Asma Bi on Apr 23, 2008 7:24 PM

    Hi Suda
    Thanks for replying :o) but im not sure about the query?
    just to simplify it (as the query im working with is to do with 3rd party addons) i have used the serial/batchs field instead and used standard demo database fields from SBO 2005 sp01:
    SELECT     dbo.ixvSerialNoFact.SRI1_IntrSerial
    FROM       dbo.DLN1 INNER JOIN
                    dbo.ixvSerialNoFact ON dbo.DLN1.DocEntry = dbo.ixvSerialNoFact.SRI1_BaseEntry
    WHERE     dbo.ixvSerialNoFact.ItemCode='g1000' and dbo.ixvSerialNoFact.SRI1_BaseEntry = '193'
    The above brings me the relevant results but when i change it to be used in a formatted search:
    SELECT     dbo.ixvSerialNoFact.SRI1_IntrSerial
    FROM       dbo.DLN1 INNER JOIN
                    dbo.ixvSerialNoFact ON dbo.DLN1.DocEntry = dbo.ixvSerialNoFact.SRI1_BaseEntry
    WHERE     dbo.ixvSerialNoFact.ItemCode=$[dln1.itemcode] and dbo.ixvSerialNoFact.SRI1_BaseEntry = $[dln1.DocEntry]
    i cant seem to get it to work - now this may be because the serial number is not allocated until teh record is added to the system, however when this happens i am unable to go back in and manually trigger the query as the delivery note rows cannot be selected!
    i  think as what im originally wanting an answer for is same as this example, im wanting to know if this is even possible?
    Thanks
    Edited by: Asma Bi on Apr 24, 2008 3:53 PM
    Edited by: Asma Bi on Apr 24, 2008 3:55 PM

  • Viewing multiple results in Spotlight search in messages

    When I perform a spotlight search for certain words in Messages it returns multiple results with multiple people.  How do I view each conversation?  I have 18 results with one person but can only view one conversation out of the 18 when I click?  Thanks!

    Hi,
    I am confused as to where you are starting from.
    Spotlight is the Search App that can be accessed top right in the Menu Bar with the spyglass type icon.
    It does not matter which app is "front" it will Search all the allowed places (mostly the Mac User account info and on other Mounted Drives).
    There is a Search option in the Main Window of the Messages App
    This will change the list to show those Chats with the word in them.
    It will highlight one when you View that Chat.
    Using the Edit Menu > Find > Next  (or Use the Keystrokes CMD+ F) will cycle the found word through as many chats as have been found.
    Same List of Chats without the Search Criteria listed
    (No Highlighted Text).
    8:25 pm      Monday; September 22, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Handling Multiple Result Sets

    Hi
    I have a problem while handling multiple result sets. To fix that problem i need to upgrade my JDBC version2.0 to 4.0.
    My Problem is that i dont know which jars need to be downloaded to upgrade my JDBC version.

    Mallika_23 wrote:
    Is that any more ideas ???1. Learn how google works.
    2. Find the drivers
    3. Read the documentation
    4. Ask questions here once you have actually read the documentation.

  • Find multiple results?

    In " Find Finder Items
    Where copy is equal to "xxxxxxxx"
    can i put in multiple results separated by a comma (1234,1235,1236 etc.) and have them found and acted on in sequence?

    Oops, looks like Tiger's Find Finder Items doesn't pass on the results from previous actions. In that case, you can query Spotlight from a Run Shell Script action, such as:
    mdfind 'kMDItemFSName == "1234"cw || kMDItemFSName == "1235"cw' -onlyin ~/Documents
    This will find file names with the specified text in your user's Documents folder. You will need to use the correct metadata tag depending on what you are searching for.
    Reference documents:
    Query Expression Syntax
    Spotlight Metadata Attributes
    mdfind manual page

  • Working with multiple results of a complex query

    Hi all!
    As I "advance" in learning PL/SQL with oracle, I now get stuck in handling multiple results of a complex query. As far as I know, I cannot use a cursor here, as there is no table where the cursor could point to.
    Here is the concept of what I want to do (pseudocode):
    foreach result in SELECT * FROM table_1, table_n WHERE key_1 = foreign_key_in_n;
        -- do someting with the resultHere is my attemt, that freezes the browser gui and throws an internal database error:
    declare
        type t_stock is record(
                baggage_id  baggage.baggage_id%type,
                section_id  sections.section_id%type,
                shelf_id    shelves.shelf_id%type
        v_stock t_stock;
        rcnt number(2);
    begin
    dbms_output.put_line(TO_CHAR(rcnt));
    loop
         SELECT COUNT(*) INTO rcnt FROM (
                   SELECT baggage.baggage_id, sections.section_id, shelves.shelf_id
                   FROM baggage, sections, shelves
                   WHERE baggage.baggage_id = sections.contained_baggage_id
                        AND shelves.is_connex_to_section_id = sections.section_id);
         IF rcnt <= 0 THEN
              exit;
         END IF;
         SELECT baggage.baggage_id, sections.section_id, shelves.shelf_id INTO v_stock
         FROM baggage, sections, shelves
         WHERE baggage.baggage_id = sections.contained_baggage_id
              AND shelves.is_connex_to_section_id = sections.section_id
              AND ROWNUM < 2;
         UPDATE sections SET contained_baggage_id = NULL WHERE section_id = v_stock.baggage_id;
         commit; -- do I need that?
    end loop;
    END;
    /So, is there a way to traverse a list of results from a complex query? Maybe without creating a temporary table (or is that the better way?).
    regards, Alex
    I reformatted the code
    pktm

    Ok, here are the details:
    The tables are used to model kind of a transport system. There are terminals connected with sections that may contain 1 piece of baggage. The baggage is moved by a procedure through a transport system. After each of these "moving steps", I check if the baggage is in front of the shelf it should be in.
    [To be honest, the give statement doesn't contain the info, in which shelf the baggage wil bee inserted. That was spared out because of the lack of a working piece of code :)]
    But: if we consider the fact, that a baggage is in front of such a shelf in the way, that it should be put in this shelf, then all this makes some sense.
    - move baggae through a transport system
    - see if you can put baggage into a shelf
    In order to "put baggage in a shelf", I need to remove it from the transport section. As the transport system is not normalized, I need to update the section where the baggage was in.
    Uhm... yes it's a task that doesn't make too much sense. It seems to be some kind of general spirit in university homework :)
    But: the FOR r IN (Statement) lloks good. I'll use that.
    And, the ROWNUM < 2 is used to limit the size of the result to 1, there is no need to have a specific ordering. It's just because - afaik - oracle doesn't have a limit clause. I would appreciate your help if you know a better way to do limit resultsets.
    best regards, Alex

  • Oracle 8.1.6 Thin Driver with Multiple Result Sets

    We're using Oracle 8.1.6 on NT using the latest driver release.
    Java 1.2.2
    We're experiencing problems with resultSet.next when we have multiple result sets open. What appears to be happening when you've read the last result set entry do a .next() call which should result in a false value we actually get java.sql.SQLException: ORA-01002: fetch out of sequence.
    This seems to us that the driver is trying to go beyond the end of the result set.
    We've checked JDBC standards (and examples on this site) and the code we've got is compliant. We've also found that the code produces the correct results under Oracle 7.3.4 and 8.0.4.
    I can also say that there is no other activity on the db, so there are no issues such as roll back segments coming into play.
    Any solutions, help, advice etc would be gratefully appreciated!
    null

    Phil,
    By "multiple result sets open", do you mean you are using REF Cursors, or do you have multiple statements opened, each with its own ResultSet? If you could post an example showing what the problem is, that would be very helpful.
    You don't happen to have 'for update' clause in your SQL statement, do you?
    Thanks

  • Multiple result recording for Manual inspection Lot using inspection point

    I want to record inspection result for inspection type 89 against *inspection point*. Then I create new inspection point and assign it in quality plan. Then I have done the multiple result recoding against one manual inspection lot in DEV server. But when it is going to QAS server then error is coming during result recoding. Error is "The results transaction cannot be used for
    inspection" Message no. QE094.
    Plz give me the solution to record the result.

    Reason is very simple : the  the inspection point definition in the task list header is incompatible with the sampling procedure assigned to the characteristic.Make sure that you select the appropriete radio button in QDV1 while creating sampling procedure and assign the same against each of the MIC's in the task list.
    Make sure that the sample tab in QA02 is pressed while assigning the inspection specification & status of the lot is REL

  • Multiple Results from Table

    Hello,
    my EJB Query hast multiple Results.
    My Table:
    key | value
    01  | test1
    02  | test2
    My Selection:
    select Object(b) from PhoneBookEntityBean b
    What kind of result type must the finder method have and how can i handle it?
    Thanks for help and ideas,
    André

    Hi
    I'm having problem with my finder method also...
    I have a finder with name findByEmpName in which I pass string “empname” as parameter, for this I have put following in my ejb-jar.xml:
         <query>
              <query-method>
                   <method-name>findByEmpName</method-name>
                   <method-params>
                        <method-param>java.lang.String</method-param>
                   </method-params>
              </query-method>
              <ejb-ql>select object(b) from TestEntityBean b where b.empName like ?1</ejb-ql>
         </query>
    and inside persistent.xml
         <finder-descriptor>
              <method-name>findByEmpName</method-name>
              <method-params>
                   <method-param>java.lang.String</method-param>
              </method-params>
              <load-selected-objects/>
         </finder-descriptor>
    but when I use this finder method in my jsp, it return me null (no rows) but corresponding row is present in the database, findByPrimaryKey and create are working fine...
    Is any other setting need to be done?? pls help!!
    ~Raj

  • Reading multiple result sets using executeQuery

    Hi - We have a database Proc that returns multiple result sets as the out params.
    Following is the line that does the DB call.
    rows = DynamicSQL.executeQuery(sentence : query, implname : "Sql Server");
    The 'rows' param above is able to get only the first result set after. It ignores the rest of the Out params.
    Do we have any way other than changing the proc to send one out param to handle this?
    Thanks!
    VVP

    This worked:
    rows = myDynamic.executeQuery(sentence : SaveQueryForMAPS, implname : "MAPS");
    foreach (row in rows) {
    //status = 0;
    status = row[1];
    display("status" +status);
    Thank you so much for your idea Andrea!

  • Callable Statatement returning multiple Result Sets

    Hello all,
    I've got a stored procedure that will be returning multiple result sets and i was wondering if someone could show me how to pull the multiple result sets out of the CallableStatement object. Any help would be greatly appreciated.

    Here is a sample that does what you want. You will have to substitute the call to DBConn.getConnection() with your own DB connection. Also remove the import of com.ovotron.util.*.import com.ovotron.util.*;
    import java.sql.*;
    public class MultiSQL {
        private static Connection conn = null;
        public static void main(String[] args) {
            // Just gets a connection to the DB.
            conn = DBConn.getConnection();
            getResults(conn);
        * Cycles through multiple result sets returned from a stored procedure.
        * Only the first column is output.
        * <p>
        private static void getResults(Connection conn) {
            // Not sure which DBMS you are using. This is the syntax for
            // SQLServer V7.0.
            String            sql     = "{call getMultiResults}";
            CallableStatement stmt    = null;
            ResultSet         rs      = null;
            int               setNo   = 0;
            try {
                stmt = conn.prepareCall(sql);
                boolean found = stmt.execute();
                while (found) {
                    setNo++;
                    rs = stmt.getResultSet();
                    while (rs.next()) {
                        System.out.println("Result set " + setNo +
                                           ": value: " + rs.getString(1));
                        System.out.flush();
                    rs.close();
                    found = stmt.getMoreResults();
            catch (SQLException e) {
                e.printStackTrace();
            finally {
                try {
                    if (rs   != null) rs.close();
                    if (stmt != null) stmt.close();
                catch (SQLException e) {
                    // Tried already to clean up.
    }The procedure I used is:CREATE PROCEDURE [getMultiResults] AS
    select  col1 from tab1;
    select col2 from tab1;
    select col3 from tab1;Of course you will need to create and populate tab1.

  • Multiple result grids?

    Is is possible to show multiple result sets in the grid portion of the screen...?
    Looks like no, but maybe someone knows a way.
    For instance
    Select * from foo;
    Select * from bar;
    execute them and then see 2 seperate grids in the Results pane (Like SQL Server Management Studio)
    I ask because I find the grid more useful thaqn script output in such cases.
    Regards all
    DC

    You can't do this at the moment, but there is an accepted enhancement request to implement it.
    See this.
    Accepted means they will do it sometime, but it is not scheduled for an particular release.

Maybe you are looking for