Feature rounded does not in my table

Hi friends,

I need to get a series of value in one of my item page "Balance" field. For this I ran the underside of coding, but it does not provide the exact value.
declare
a number(30);
begin
select  (round(:P7_AMOUNT, 2) + :P7_CURRENT_BALANCE) into a
from n118_b_trans a, n118_bal_trans b
where :P7_ACCOUNT_NO = b.account_no
dbms_output.put_line(a);
end;
If I have tested the code above, by entering the value for the following variable as
:P7_AMOUNT = 250.25
:P7_CURRENT_BALANCE = 300
:P7_ACCOUNT_NUMBER=1062
Then 'a' has come back * 550.25*, but the answer, which appears to me is only 550.

I don't know what went wrong.

Even if the amount and the balance , I also made clear the scale to 4(accurately) when you set its data type in the table, then too why it doesn't work.

Brgds,
Mini

Hello

you said that number (30) so there is no scale. Then Oracle implicit makes 0 and towers your phone number, too. Then declare that you are has, such as:

a number(30,2);

Herald tiomela
http://htendam.WordPress.com

Tags: Database

Similar Questions

  • I paid for the Pro account paid feature still does not work

    I paid for the Pro account paid feature still does not work

    Hi davidv92782444,

    Make sure that you open the PDF in Acrobat Pro MS download and install Adobe Acrobat DC to use the Acrobat features not in Acrobat Reader ms, both are different applications.

    Kind regards
    Nicos

  • Title chapter works on numbered list, but does not redial in Table of contents

    I'm doing a long document and put each chapter in a separate file.

    I use the chapter number variable in the title of the chapter and bullet styles is used in the heading and numbered lists set to ^ h ^ #^ t. It works very well in all the chapters.

    For example:

    Chapter 1

    1.0 header of a zero with the numbered list style

    Copy copy copy

    1.1 header a numbered list style

    Copy copy copy

    1.2 header a numbered list style

    and so on

    Chapter 2

    2.0 header with zero style

    Copy copy copy

    2.1 header a numbered list style

    Copy copy copy

    2.2 header a numbered list style

    and so on

    BUT when I create the table of contents and want the header of those who are listed, they appear like this

    1.0 header of... 1

    1.1 header... 5

    1.2 header of... 7

    1.3 header of... 9 (this should be the 2.0 header)

    1.4 header of... 12 (it should be 2.1 header)

    1.5 header of... 13 (this should be the heading 2.2)

    How to make the table of contents list the correct numbering, using the chapter title variable that is used in each file in the book?

    Thank you

    Maryann

    Okay, I think that I have now.

    1. Open the table of contents
    2. Layout > Table of contents
    3. Changing the shape of paragraphs numbered to include the full paragraph, OK
    4. If it does not, you will have duplicate numbers, but the new set is correct.
    5. If so, window > Styles
    6. Edit the table of contents and change the Type of list to none.
    7. Update the table of contents once more

    Looking forward to hear words that's it.

  • Does not receive the table name in the list of schema objects creating EO

    Hello

    IAM does not have my name of the table custom in the list of schema objects during the creation of EO.

    I created a custom table and I need to use this table looks for creation EO,

    But while creating the EO, I'm not able to find the table in the schema object list.

    in the connection database, these tables are present, but only in this window (window of creation of Eo) these tables do not come

    can someone please help how to solve this problem.

    Hello

    I found the solution

    in business components that there is another database link that I've changed now, it works fine now

  • "Look inside" feature Amazon does not not on Firefox

    The "look inside" option that usually appears on the cover of the book on Amazon.com does not work on firefox. It is fine on Safari and was always fine in firefox, but in the last week or so has stopped working.

    You can try the following steps in case of problems with web pages:

    You can reload webpages and ignore the cache to refresh potentially stale or corrupt.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)

    Clear the cache and delete cookies only from Web sites that cause problems.

    "Clear the Cache":

    • Firefox > Preferences > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox > Preferences > privacy > "Use the custom settings for history" > Cookies: "show the Cookies".

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • XP - integration features mode does not not after his stop.

    I installed xp mode, let the option by default close = hibernation.  After closing and restarting, integration features still worked fine.  (for example, I can see the files host.)

    Recommended Windows Update I have install the critical updates.  To complete the installation of the updates, I had to close xp mode.  After that, the integration features do not work.

    Hello

    The issue of Windows is more complex than what is generally answered in the Microsoft Community Forums. Appropriate in the TechNet Forums. Please post your question in the TechNet Forums.

    You can check the link to post your question:

    http://social.technet.Microsoft.com/forums/en/w7itprovirt/threads

    I hope that helps!

  • Database will return no error, but does not delete the table

    Hello

    I'm developing an application that uses a database (SQLite). I would like to delete and re-create a table in the database (this table is the kind of a cache).

    When I run the following code, I get no error but chrome / ripple-> resources-> "Web SQL", I still see the old structure of the table.

    Do you have any idea what the problem might be or how I can solve it?

           db.transaction(
                function (tx) {
                    tx.executeSql('DROP TABLE IF EXISTS users',[],function (tx, res) {}, function (tx, err) {alert(err.message)});
                    tx.executeSql('CREATE TABLE users (firstname, lastname, phonenumber, emailadd, company)',[],function (tx, res) {}, function (tx, err) {alert(err.message)});
                    for (var i = 0; i < oPerson.length; i++) {
                        tx.executeSql('INSERT INTO users (firstname, lastname, phonenumber, emailadd, company) VALUES ("' + oPerson[i].Firstname + '", "' + oPerson[i].Lastname + '", "' + oPerson[i].Phonenumber + '", "' + '", "' + oPerson[i].Emailadd + '", "' + oPerson[i].Company + '")');
                        iUsers = iUsers + 1;
                    }
                }
    
            );
    

    Thank you very much

    Roberto.

    Hello Roberto,

    There was a problem with your INSERT INTO string where you have provided additional value which did not exist as a database column. Change

     oPerson[i].Phonenumber + '", "' + '", "' + oPerson[i].Emailadd
    

    TO

     oPerson[i].Phonenumber + '", "' +  oPerson[i].Emailadd
    

    Here's a complete code that must run:

    var db = openDatabase('mydb', '2.0', 'Test DB', 4 * 1024 * 1024);
    var iUsers = 0;
    var oPerson = [{Firstname: 'Joe',
        Lastname: 'Smith',
        Phonenumber: '1800CALLJOE',
        emailadd: '[email protected]',
        Company: 'Photojam'},
        {Firstname: 'Jack',
        Lastname: 'Smith',
        Phonenumber: '1800JACK999',
        emailadd: '[email protected]',
        Company: 'Photojam'}
        ];
    db.transaction(
                function (tx) {
                    tx.executeSql('DROP TABLE IF EXISTS users',[],function (tx, res) {}, function (tx, err) {alert(err.message)});
                    tx.executeSql('CREATE TABLE users (firstname, lastname, phonenumber, emailadd, company)',[],function (tx, res) {}, function (tx, err) {alert(err.message)});
                    for (var i = 0; i < oPerson.length; i++) {
                        tx.executeSql('INSERT INTO users (firstname, lastname, phonenumber, emailadd, company) VALUES ("' + oPerson[i].Firstname + '", "' + oPerson[i].Lastname + '", "' + oPerson[i].Phonenumber + '", "' + oPerson[i].Emailadd + '", "' + oPerson[i].Company + '")');
                        iUsers = iUsers + 1;
                    }
                }
    
            );
    

    Let me know if there are problems!

    See you soon,.

    James

  • DAC does not synchronize the tables of Informatica

    Hello

    I'm new to OBIEE although I experience Informatica. I created a mapping and the workflow. DAC, I created the new folder logical and physical. Creates a new task and provided the name of the task and logical record and other details. When I try to "Synchronize the tasks", I get a message of success with the names of the tables as expected. The DAC journal file is below.

    -The Sync task has begun-

    Requested workflow is exported to C:\DAC\dac\repository\taskSync\.

    New source/target tables are inserted in the DAC metadata.

    Exported xml files are removed from C:\DAC\dac\repository\taskSync.

    -Sync task completed.

    It is not question of DAC with Informatica repository communication or integration service as connection test results are ok.

    In Windows command prompt, pmcmd and pmrep works fine.

    Can you please help me out here, as I'm stuck here and not able to go further.

    I checked the DAC server log. It shows a serious error. I copy the same thing here.

    12 INFO Fri May 02 09:46:09 EDT 2014 reading repository properties

    INFO 13 Fri May 02 09:46:09 EDT 2014 reading repository properties

    14 INFO Fri May 02 09:46:10 EDT 2014 reading execution types

    15 INFO executors of sync Fri May 02 09:46:10 EDT 2014

    16 SEVERE Fri May 02 09:46:10 EDT 2014 audit the localhost with the values defined in the DAC repository!

    INFO 17 Fri May 02 09:46:10 EDT 2014 add server name: localhost

    INFO 18 Fri May 02 09:46:10 EDT 2014 adding replacing servername: unspecified

    19 SEVERE Fri May 02 09:46:12 EDT 2014 Unknown host Unspecified. Error message: unspecified

    Fri May 02 20 INFO 09:46:12 EDT 2014 bound to port 3141

    INFO 21 Fri May 02 09:46:12 EDT 2014 creation ClientMessage dispatcher with 2 worker threads

    INFO 22 Fri May 02 09:46:12 EDT 2014 no competition, only ETL can work both and it will run in the same process space.

    NEWS 23 Fri May 02 09:46:12 EDT 2014 SERVER_NETWORK_MESSAGE: Created ClientMessage dispatcher with 2 worker threads

    Fri may 02 24 INFO 09:46:12 EDT 2014 com.siebel.etl.net.ClientMessageDispatcher registered with HeartBeatManager

    Thanks for your help,

    Ananth

    You can ignore any additional flat file as the source for the task in CAD.

    Make sure what you do know about informatica

    Pls don't change the original message! If you want to add anything, you can go to meet.

    I think that you are ready to go to close

  • DBMS_STATS.gather_fixed_objects_stats does not update the tables all fixed.

    I use 11g on Redhat

    After race run dbms_stats.gather_fixed_objects_stats not change date last_analyzed in DBA_TAB_STATISTICS for table X$ KTURD

    In our database entry dba_tab_statistics to the fixed point of view shows only NULL values.
    Any query that object exist in our databases show 'now, the selected lines.

    See you soon
    FJFranken

  • JTable with custom column model and model table does not display the table header

    Hello

    I create a JTable with a custom table model and a custom column template. However the table header is not displayed (Yes, it's in a get). I have narrowed the problem down in one compilable example:

    Thanks for your help.
    import javax.swing.*;
    import javax.swing.table.*;
    
    public class Test1 extends JFrame
    {
         public static void main(String args[])
         {
              JTable table;
              TableColumnModel colModel=createTestColumnModel();
              TestTableModel tableModel=new TestTableModel();
              Test1 frame=new Test1();
    
              table=new JTable(tableModel, colModel);
              frame.getContentPane().add(new JScrollPane(table));
    
              frame.setSize(200,200);
              frame.setVisible(true);
         }
    
         private static DefaultTableColumnModel createTestColumnModel()
         {
              DefaultTableColumnModel columnModel=new DefaultTableColumnModel();
              columnModel.addColumn(new TableColumn(0));
    
              return columnModel;
         }
    
         static class TestTableModel extends AbstractTableModel
         {
              public int getColumnCount()
              {
                   return 1;
              }
    
              public Class<?> getColumnClass(int columnIndex)
              {
                   return String.class;
              }
    
              public String getColumnName(int column)
              {
                   return "col";
              }
    
              public int getRowCount()
              {
                   return 1;
              }
    
              public Object getValueAt(int row, int col)
              {
                   return "test";
              }
    
              public void setValueAt(Object aValue, int rowIndex, int columnIndex)
              {
              }
         }
    }
    Published by: 802416 on October 14, 2010 04:29
    added
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    See http://download.oracle.com/javase/6/docs/api/javax/swing/table/TableColumn.html#setHeaderValue (java.lang.Object)
    When the TableColumn is created, the default headerValue is null
    So the header ends up rendered empty label (probably of size 0 if the JTable calculates its size of header based on the size of the default rendering tool).

    It worked:

         private static DefaultTableColumnModel createTestColumnModel()
         {
              DefaultTableColumnModel columnModel=new DefaultTableColumnModel();
                    TableColumn col = new TableColumn(0);
                    col.setHeaderValue("Header Title");
              columnModel.addColumn(col);
                    return columnModel;
         }
    

    Published by: jduprez on October 14, 2010 14:09
    Beaten by a fraction of a second!

    Published by: jduprez on October 14, 2010 14:10
    OK, by a split of 17 minutes, specifically: o)

  • Feature BOX does not

    Hello

    I use SQL to create a list and you want to sort in a certain order. Here's the SQL, I created

    Select distinct
    (case
    When sub_category = "Général" then 1
    When sub_category = 'Customer Service' then 2
    When sub_category = 'Service Consultant' then 3
    When sub_category = 'Technicians' then 4
    When sub_category = 'Service problem' then 5
    6 other
    end) as list_order,
    "CATEGORY".
    Of
    T_SURVEY
    where source = 'SECONDARY '.
    order of list_order


    This query is the following:

    1 overall
    6 customer service
    Service issue 6
    6 service Consultant
    6 Service technicians


    Please advice how to fix...

    Thank you

    This probably works, but not in a way that you expect. What is the data type of SUB_CATEGORY? If it's a VARCHAR2, or NVARCHAR2 Oracle uses the nonpadded semantics when comparing strings. For example:

    SQL> CREATE TABLE TEST(COL VARCHAR2(10));
    
    Table created.
    
    SQL> INSERT INTO TEST VALUES ('ABC   ');
    
    1 row created.
    
    SQL> INSERT INTO TEST VALUES('ABC');
    
    1 row created.
    
    SQL> SELECT COL, LENGTH(COL), (CASE WHEN COL='ABC' THEN 'Yes' ELSE 'No' END) AS COMP FROM TEST;
    
    COL        LENGTH(COL) COM
    ---------- ----------- ---
    ABC                  6 No
    ABC                  3 Yes
    

    I inserted two lines to the TEST. One with spaces one without. As you can see in the expression box that they are not the same values.

    I recommend that you check the data type of your column and see if he has all the right values. You could do a simple control as follows:

    SELECT COL FROM TEST WHERE LENGTH(TRIM(COL)) != LENGTH(COL);
    

    You can find information about the semantics of comparison of the characters here.

  • Satellite Pro R50 - B - feature touchpad does not work

    Hello guys,.

    I have a problem with the touchpad of a Toshiba Satellite Pro R50 - b pssg1e - basically, I can move the cursor, but I can't use it to scroll or anything else.

    I encountered this problem of first on windows 8.1 and I thought he was not yet a driver for the touchpad. Now, I have installed Windows 7 64 bit and still the same problem. Idon't understand the problem, I installed all the drivers from the Web site, including «touch pad driver made by Alps» Electric

    In Device Manager, the mouse is recognized as just a Ps/2 compatible mouse. And in the mouse settings, I did not advance tab where I can activate additional functions of the touchpad.

    PS. the touchpad is enabled, so no, the solution is not fn + f5.

    Thank you in advanced!
    Andrei

    Hello

    Laptop Satellite Pro R50 - B should support the touch pad with gesture function.
    In the 40 user manual page, you can find information about the movements that are supported (tap, pinc ir stretch and two fingers scrolling).

    Two fingers scrolling present works as follows: place two fingers down and drag them vertically or horizontally anywhere on the touchpad. This allows you to use the window scroll bars.

  • feature microphone does not not on ios 8

    I have an app that I developed in Adobe Flash on iOS as an AIR application.

    The function of microphone that allows a user to record his voice and read it has stopped working on devices running iOS 8.  It worked fine on older versions of iOS, but it plays well with iOS 8.

    Has anyone experience this problem and is there a solution?

    Help, please!  Thank you!

    Found the solution.  I need to republish the app using the latest version of the SDK AIR (16).  That seems to have done the trick.

  • 1.5.4 - SQL-spreadsheet SQL-Developer does not use the owner of the Table

    In older versions of the sql developer, you can remove a table in the spreadsheet and was built a select query. With the new version 1.5.4 - owner of the table is ' % s ' and you must inform the owner of the table or the query does not work with tables of other users.

    Is this a bug or is there the possibility to change the settings to delete tables in the SQL-worksheet with the owners of the table.

    You're DND from the node of the Table under the node of the other user? If so, I'm able to reproduce the problem you're talking about. Otherwise I still not got you problem clearly.

  • Universal Clipboard does not - prerequisites

    Hello

    Problem:

    "I can't the universal Clipboard to work, even if I met all conditions prior and followed all the guides available at present".

    I have the following devices:

    • MacBook 12 "retina (Early 2015) with macOS Sierra, official release;
    • iPhone 6 Plus with iOS 10, official release.

    What follows is activated/enabled:

    • Bluetooth on both devices;
    • Wi - Fi on both devices.
    • Discount on both devices;
    • Same account iCloud on both devices.

    Things I've tried, with absolutely no results:

    • Copy and paste between the devices, both ways, but it does not (even after a few moments of waiting).
    • Deactivating Bluetooth on both devices and reactivation;
    • Disabling a Wi - Fi connection on both devices and reactivation;
    • Deactivation of discount on the two devices and reactivation;
    • ICloud on both devices and connection disconnect rear;
    • Restart both devices;
    • Reset NVRAM/SMC on Macbook;
    • Looking for updates (both are up to date).

    Details:

    "All other Sierra macOS / iOS 10 features work as expected." Transfer (and other characteristics of continuity - including mobile data sharing) works without any problem at all. It is only the universal Clipboard feature that does not work. I also ran a check of the system, Wi - Fi and Bluetooth chips are defective on these 2 devices. »

    There is no reason why the universal Clipboard feature does not work for me, as I have met all the prerequisites and done all the recommended troubleshooting steps.

    Can someone help me with a working solution?

    P.S.: go to the Apple Store or reinstallation of the OS is not what I call a working solution. It is only your time and solves nothing. The solution must be more practical, i.e. a file of damaged preferences or something like that).

    Problem solved.

    I reinstalled Mac OS Sierra and apparently it solved the problem.

    I don't know there was some preference and/or a file that has changed somewhere. It's a little extreme, but again, it is the only one who gave convincing results.

Maybe you are looking for