How do I calculate the column in a table

Hello

I rate column and the amount in the table. I want to multiply these column for each line of entry and displays its result in the readonly in the amount column.

like as follows

: Amount: = quantity * side;

can someone help me


Thank you

Hervé

Hello

Just add it to your query...

SELECT col2, col2, col3, col2*col3 col4
FROM my_table

Then change this column to read only in the report attributes.

See you soon

Ben

Tags: Database

Similar Questions

  • How to hide/show the column in a table

    Hello world

    I have a table based on the table "Dept".
    Dept_id
    supervisor_name
    Dept_id is the LOV, and it has value (11, 12,...) (20),
    Here, when the Dept_id value is selected as 20, then the field "supervisor_name" must be posted, for the rest of the values, that it must be hidden.
    How this can be done using Jquery?
    Thank you.
    Concerning

    Look at this http://apex.oracle.com/pls/apex/f?p=46417:26

    Test/test connection

    JavaScript Code: Add in the page header > javascript

    function test(pThis) {
     //get the curren row index on change
     var currIndex = $('select[name="'+pThis.name+'"]').index($x(pThis.id));
     if (pThis.value=='20') {
      $('input[name="f01"]')[currIndex].style.display = 'block';
     }
     else {
      $('input[name="f01"]')[currIndex].style.display = 'none';
     }
    }
    

    In the element, add attributes column deptno

    onchange="javascript:test(this);"
    
  • In windows 8 How do you do the column bookmarks 'flexible '? I used to be able to make it narrower.

    Windows 8 How do you do the column bookmarks 'flexible '?

    Sounds that you use the bookmarks Menu button that opens a drop-down list.

    Firefox has two buttons bookmark with a star in the window customize.

    A single star button has a drop-marker that opens the bookmarks menu and may appear on the Navigation toolbar or on the bookmarks toolbar if the menu bar is hidden.

    The other Star without the drop-marker button opens the bookmarks in the sidebar (view > sidebar > bookmarks).

  • How can I calculate the total time in java?

    Hello!

    I need to calculate the total time!

    For example I start time:
    Format formatter1;
    Date date1 = new Date();
    formatter1 = new SimpleDateFormat("hh:mm:ss");
    Dim startTime = formatter1.format (date1);
    startTime = "14:20:40.

    And I have finishing time:
    Format formatter2;
    Date2 date = new Date();
    formatter2 = new SimpleDateFormat("hh:mm:ss");
    String finishTime = formatter2.format (date2);
    finishTime = '08:30:55;



    Also, having calculated manually, I get the total time: '18:10:15.

    How can I calculate the total time in java? (Using formatter1 and formatter2 I guess)

    What I need is to print 'total 18:10:15 '.

    Thank you!

    800512 wrote:
    I did the following, but I think something's wrong here:

    I've defined before: Date date1 = new Date(); Date2 date = new Date();
    And it should be exactly 5 seconds between them.

    I found the delta between date1 and date2:

    Format formatter = new SimpleDateFormat("HH:mm:ss");
    timeInMilliFromStart long = date1.getTime () - date2.getTime ();
    Date date3 = new Date (timeInMilliFromStart);
    String timeInSecFromStart = formatter.format (date3);

    and I still get
    timeInSecFromStart = 02:00:05

    But it should be exactly 00:00:05.

    What is a problem?

    Because, as I said, a Date to measure a moment in time, not a period. So when you have 5000 ms, and you that transform a Date, this means that 5 seconds after the time, which equals 00:00:05.000 01/01/1970 GMT.

    As I said, if you are not currently in GMT, then you must set the DateFormat GMT TZ. Right now, it's to show you the time in your TZ. If you have included the date in your SimpleDateFormat, you would see the 01/01/1970 or 31/12/1969, function that TZ you find.

    Bottom line: you try to use these classes in a sense they are not intended for, and while you can get the results you want for a limited set of entries if you understand how these classes and how to work with it, it is a fragile approach and comes with all sorts of warnings warning.

  • How do we calculate the growth of the database?

    I have the situation where I have to calculate the growth of the database. I'm new to this business. We have implemented new indexes on the database of production where it took freespace all that remains. So, we have increased tablespace because we still have a few clues more to compile. Unfortunately, we ran out of space on the server. I asked for more space on the server that is to say 50% of the current database size. Of course, there are other databases on the same server and management wants to know why I need that a lot of space. Now my question is

    1. How do we calculate the growth of the database?
    2. How do we know how much table space is necessary for the given index.
    3. while maintaining growth increased from DB in calculating how we predict future growth.

    Any help much appreciated. Thank you.

    Hello

    Please visit the following link.

    http://www.DBA-Oracle.com/t_database_growth_reports.htm

    I hope this will help you.

    Thank you

  • How can I know the Position of the column in a table

    Hi all
    How can I know the position of the column in a table...
    For example: -.
    I have a table

    DESC EMPLOYEES

    EmpID
    Ename
    SAL

    I want to know the Empid is in 1st position, ename is 2nd and sal is in 3rd place.

    is this possible?

    SELECT *.
    Of user_tab_cols
    WHERE table_name = 'EMP ';

    Concerning
    Arun

  • Deactivation of the column in a table based on the setting in the search box

    Hi all

    I use Oracle Apex 4.1. I have two region

    1. search box

    2. in the form of a table

    In the search box, I have a LOV field where the user can select the value. Based on this LOV in the search box, tabular column f06 must disable or read-only.

    For example if I select THREE in LOV then only column f06 is expected on the other it must disable. How to get there.

    Thanks in advance

    Ravi

    Hi Bobo,

    Hope link below will solve your query.

    Disable the column in a table.

    BR,

    Patrick

  • Find the name of the column in all tables

    How to find the name of the column in all tables in the database for any column to reveal the name of the person?


    We have over 1000 tables looking for.and in some places, the name column FNAME LNAME, First_NAME, DNAME

    For example we have Customer table, Table EMPLOYEE and the ORDER Table

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

    Customer table
    --------------------------------

    LNMAE

    EMPLOYEE table

    EMP_ID
    DEPT_NAME (we don't want this column as it is not a name column)
    Last_name (he must propose this column because it is named)

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

    CONTROL Panel

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

    ORDER_ID
    ORDER_NAME (we don't want this column as it is not a name column)
    Last_name (he must propose this column because it is named)

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

    Dept table

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

    Dept_ID
    DEPT_NAME (we don't want this column as it is not a name column)

    Please advise...

    Thank you.

    Hello

    What exactly do you do?

    If you want to display the tables containing these columns, you can query the view data dictionary USER_TAB_COLS (or ALL_TAB_COLS, or, if you have privileges, DBA_TAB_COLS).

    For example:

    SELECT table_name, column_name

    Of user_tab_cols

    WHERE nom_de_colonne IN ('DNAME', 'FNAME', 'FIRST_NAME', 'LAST_NAME', 'LNAME') - or else

    ORDER BY table_name, column_name

    ;

  • How will I know "the size of a table special VS size of RAM"

    Hi all

    How will I know "the size of a table special VS size of RAM"?

    I should know because I want to understand what join method to use.

    Please correct me if my attempt to catch the truth is crazy.

    Thanks in advance.

    You can get the size of a table of DBA_SEGMENTS.  I'm sure you can get the amount of RAM of other tables of data dictionary as well if you can define precisely what memory segment you are interested in (e.g. CMS?)  PGA?  The amount of physical RAM on the box?  The size of the buffer cache?  The amount of virtual memory available?)

    That being said, comparing the two is not as significant.  You, as a developer, are generally not in the business of choosing a join method.  It's the job of the optimizer.  And the optimizer takes into account a range of data that you have not begun to ask about yet.  The size of the table is not even particularly relevant for calculations - the optimizer the amount of data operations are back, the relative size of the data on each side of the join, the availability of indexes, etc. are all much more important than the raw size of the table (but the raw size of the array is a factor in the assessment of the amount of data that is returned).

    Justin

  • Update the value of the column based on another value of the column to another table

    Hi all

    I have something very confused me and need your help.

    Having two tables A and B.

    Table A have 2 column (+ id + and desc1)

    Table B have column 2 also (+ transnum + and desc2)

    Now, I want to update the column desc2 of table B identical desc1 of table was where transnum of Table B same as the id of the table has.

    I use this SQL

    update of a2 set a2.desc2 = a1.desc1 of a2 on a2.transnum = a1.id inner join a1

    but this error occurs

    Error from line 5 in order:
    update of a2 set a2.desc2 = a1.desc1 of a2 on a2.transnum = a1.id inner join a1
    Error in the command line: 5 column: 35
    Error report:
    SQL error: ORA-00933: SQL not correctly completed command
    * 00933. 00000 - "command not properly ended SQL."
    * Question: *.

    * Action. *

    Hope someone can help me. TQ for help...
    SQL> create table a1 (id number(2),des varchar2(10));
    
    Table created.
    
    SQL> create table b1 (transnum number(2),des varchar2(10));
    
    Table created.
    
    SQL> insert into a1 values (1,'maran');
    
    1 row created.
    
    SQL> insert into b1 values (1,'ram');
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> update b1 set des=(select des from a1 where b1.transnum=a1.id);
    
    1 row updated.
    
    SQL> select * from b1;
    
      TRANSNUM DES
    ---------- ----------
             1 maran
    
  • How can I change the OWNER of a table?

    How can I change the OWNER of a table entr2009mm?

    Or the OWNER of all TABLES including tablename match the pattern * 2009 *?

    Peter

    Hello

    There are different posiibilities, Import/Export can do.

    But, if it is not a too large Table, you can use ETG (from a user with DBA privileges for example).

    Create Table . as select * from .;.

    Then, you must re-create the dependent objects (Index,...) and remove the Table Source.

    If you have a set of Tables, it is preferable to use Export/Import.

    Hope this helps.
    Best regards
    Jean Valentine

    Published by: Lubiez John Valentine, February 9, 2010 20:20

  • How do I synchronize the columns added in Jdeveloper Studio Edition Version 11.1.1.7.0 views

    Hello

    I added a few columns in the database Table and I want to synchronize my point of view on this basis. I am able to synchronize entities, but how do I synchronize the based entity views or views in general?

    Thank you

    Vicky

    And to display objects that are not based on an entity, you must change the query

    will appear as

    Timo

  • How can I configure the columns without using code

    So, is it how, simply type in the information tab and everything that is necessary to get a peek, or it can be done only use code?

    So here is what I get, but I don't see how. When I try to create spaces / columns - it does not work. If I'm just trying to hit the SPACEBAR to create spacing, then only a single space. I am

    guess I could insert the jpeg and edit the files together when and if there are changes to the pricing, but that seems to be the wrong way to do it.

    pricelist.jpg

    Suitable tables involves using some code. Here's a way to do it: tables adapted in Pure CSS - Blog on technology of LivingSocial.

  • How can I rearrange the columns in the files Panel in Dreamweaver CC 20141?

    I just upgraded to Dreamweaver CC 20141, and I want to change the order of the columns in the files Panel. But I can't understand how to do this. Can anyone help?

    Thank you

    Kim

    You can also change the oder in which the columns are presented by editing your site definition (Advanced settings > file view columns).

  • How to not display the column heading in the table view?

    I don't want to display the column header in the table display, how I can make?

    If you use JavaFX 8, you can use the following text in an external style sheet:

    .table-view .column-header-background {
      -fx-pref-height : 0 ;
    }
    

    If you use JavaFX 2.2, the - fx-pref-height attribute is not available in css, so I think that you must resort to a search:

    final Region tableHeader = (Region)table.lookup(".column-header-background");
        tableHeader.setPrefHeight(0);
    

    As always, I am obliged to point out that I don't really like the research. Sometimes, they seem to be the only way, however.

Maybe you are looking for

  • Site appears in Firefox. Works fine in IE 10 & Chrome. Windows 8 / x 64

    Using Firefox on Windows 8 21.0 / x 64. I have some sites where Firefox displays a graph of look odd, but none of the user interface that displays in Chrome or IE 10. I can recreate, for example, by going to http://www.basspay.com. I'm puzzled. I rem

  • How to move photos from Mac to the cloud?

    I have a large number of historical pictures of my family.  What is the best way to move the copies to the cloud for storage? I have an iCloud account.

  • Equium M70: card wireless regularly abandons the connection

    Hi, I wonder if anyone can help. My map regularly just Equiuim M70 wireless abandons its connection. If you browse on wireless networks, it seems my WEP encrypted network and it's one to connect to, as it says "Automatic" by him.If you click Connect

  • 16 GB of RAM will not work correctly? Help appreciated!

    So I recently had a 2009 Mac Pro 2.66 GHz and it came with 8 GB of RAM. Recently I bought 16 GB of DDR3 RAM, and I'm having a few problems... If I put the stick in slot 1 and 2, location 1 gives a red light and it appears that 8 GB If I put the stick

  • How to clean and stay clean and whether or not you?

    I had many problems with malware, keyloggers and others.  Almost all programs are running in the background and not be detected by the antivirus, antimalware scans programs I install.  Last month I did the factory recoverys on all my computers and do