extraction of positive numbers

Hello world


I have a table and this table has positive values and nagetive several records,
It comes to my table
create table item_tran_cost)
Number of i_code (10),
Number of i_cost (10);
)
data such as
i_code i_cost
001 1,000
001 400
001.350
001 25
001 15
and so on

I want back the positive values only (1,000,.350)
is it possible to do?
any help please

Published by: Mohammed July 31, 2011 23:04

Jin

You can the user ROUND, TRUNC, SIGN of way more
Try this please

 SELECT I_CODE, I_COST FROM ITEM_TRAN_COST where  SIGN(I_COST) =1;

Tags: Database

Similar Questions

  • sum of only of positive numbers

    I'm the Dean in a high school and I need to keep track of demerits of the student and served detention.  I created a spreadsheet on the photo below.  As you can see whenever a student gets a demerit, I put it all in a row (date, teacher gives the incapacity, that was the incapacity and how many demerits received for the offence).  So you can imagine the end of the quarter, this worksheet is big enough (400-500 lines). I also put a negative number (-2) when the student uses of detention (a student must serve each received 2 drawbacks.

    I wrote about this formula on this forum almost two years ago.  I have another tab (sheet) that adds up all the disadvantages, so I can go to this (roadmap) tab and see who needs to serve.  The formula a = SUMIF (Sheet1! Header, header, Sheet1H:H) and it works beautifully. This other sheet has our entire student body on it (each student only listed time... If we have a student population of 300 students, it has only 300 lines). We add all the points (even negative), I can see that has more than 2 demerits and who needs to serve.  In the example below, Steve Abrahim would have 0 demerits on the second sheet because he received 4, but also served 4.

    But now, I realize that I need a second tab (sheet) that has the total number of demerits a student receives during the quarter.  Then, I need a formula that sums only positive numbers.  So, once again, this worksheet will have all our student body listed in the column (a student by rank).  On this tab (sheet), Steve Abrahim would be 4 demerits (even if he served two detentions) and Adam Butler would also have four (even if he served only a detention).  Can someone write this formula?

    Please let me know if you need any clarification on my question.

    Thank you

    Mark

    = SUMIF (E, ' > = 0 "" ")

    where I think the Points column is E

  • Display the plus sign for positive numbers

    I see in format > cell > data format > numbering system there is a checkbox for «represent negative numbers using the sign less»

    Ability to wear a sign "+" for positive numbers?

    Hi inte-motorcycle,

    It is possible, use a format customized in Numbers ' 09. I don't know if this feature is available in 3 editions.

    Select the cells, click the format brush, select the cell, then Explorer.

    Kind regards

    Barry

  • Extraction of specific numbers of a text file?

    I have a text file with repetition of the data sets.  Each is long 4 lines, with line 1 which contains a title, line 2, with a constant that identifies the data, line 3 has a single number and line 4 has two digits corresponding to a max and min.  Is there a way I can extract the line numbers 2, 3 and 4 separately to create a table for each?  So far, I used file text, connected to a loop playback, containing analysis of string function.  I don't know how to choose every 4th line of the file to obtain common aggregate.  I am new to Labview, so any advice is much appreciated!  Thank you.

    You can also use text file VI and the Decimate function table 1 d.

    Ben64

    As Moderator1983 said that a sample of the data would be useful, min and max, separated by space, tab, comma. Want you as min and max in separate tables? ...

  • Extract the text numbers

    Hi guys,.

    I have a column that contains the names and mobile PHONE numbers. How can I get rid off the letters in the column, or how can I extract only the numbers in the column.

    Best regards
    SQL> select regexp_replace( 'vivek39636322L12','[^0-9]','') from dual;
    
    REGEXP_REP
    ----------
    3963632212
    

    Vivek L

  • Mathematical function to show only the positive numbers?

    Does anyone know of a mathematical function to show only the positive numbers. I have a formula that returns an integer, if the integer is negative, I want to show ZERO. I'd rather not have to use a case statement.

    For example, if it returns 5, I want to see 5. If it returns 0, I want to see 0. If it returns-2, I want to see 0.

    How about this?

    (x + ABS) / 2

    where x is the column?

    When x = 5, you have (5 + 5) / 2 = 5

    When x = 0, you have (0 + 0) / 2 = 0

    When x =-2, you have (-2 + 2) / 2 = 0

  • Extract/Scan for numbers of several lines of strings

    Hi all

    I want to extract (data) numbers obtained from an acquisition of series that will be shown in several online channels:

    $# pressure 20

    ! @temperature 100

    #voltage 1.2

    I want to extract 20 100 and 1.2 so that I can do more than manipulation of data. Should I use the regular expression to match? I couldn't get a good regular expression to extract the numbers.

    Thank you!


  • extract the positive values of a 2D array

    Hello

    I have a table 2D with positive value in column 2.

    What I want to do is to find the positive value of each column.

    For example, I have this table

    A        B

    -1        1

    2         -2

    3         9

    5         4

    -5        6

    6         7

    and I want to get the following

    A          B

    3          9

    5          4

    6          7

    I managed to have the positve in each case, but the value do not match (I have all the positive values of each column) as

    A AND B

    2 1
    3 9
    5 4
    6 6
    7

    can you help me please?

    Just to be clear: you want the output array to contain all rows in the input table that have positive values in the two column A and column B?  Are you using strictly positive (> 0) comparisons or not negative (> = 0)?  Are integers of values?

    RIF answers: Yes and strictly positive, this will do what you want.

    Lynn

  • Position of the numbers messed up in a chapter

    Position numbers are confused in Chapter 1 of my book file. Is there a way to fix this?

    1.1.3 Heading1 text here

    1.1.3.1 Heading1 text here

    1.1.3.2 Heading1 text here

    1.1.3.3 Title2 text here

    1.1.4 Heading1 text here

    .. then the next topic started

    3.1 title txt

    3.1.1 position...

    3.1.2 the position...

    The Auto-Numbering Format is

    < n >. < n + > (H1)

    < n >. < n >. < n + > (H2)

    < n >. < n >. < n >. < n + > (H3)

    This is probably because you have all your numbering in the same series, i.e. without label series is used.

    Automatic numbering FM may use a series label so that the flow of numbering behaves independently. The label of the series consists of a single character (uppercase and lowercase are separated), followed by a colon, for example H: (see the example provided in response to Niels).

    For the headers, you can use the label H: or h:. Some users also use F: figures and T: for tables, but it is up to you to define your favorite program.

    Paragraphs that use the numbering of should be in another series of positions, i.e.\t A: and A:\t

  • continue the numbering after extract - it still restarts.

    RH8 HTML

    Hi all.

    I have several themes that use the same 5 steps in a process, that I put in a code snippet, and then add several numbered steps more to the list that are specific to this topic.

    I want the additional steps that are not part of the extract of continue numbering. for now, I have the 5 steps numbered in the extract and additional specific steps for each topic restart at 1, rather than continue to 6.

    for example.

    1 go to search

    2. Enter your text

    3. Select your criteria

    4 Select the...

    5 click search.

    1 of the window... click... - This step is a continuation of the previous 5 but numbering does not, on the contrary, it restarts.

    Is it possible to continue the numbering from a snippet?

    Thank you.

    Nick

    The only way to achieve this is to restart the numbering of the item in the list after the code snippet in the required number. You can submit a feature request for it.

  • positive and negative rotation numbers

    Hi all

    I create a roulette game that calculates the winning number based on the rotation of the main wheel. I'm if/else using statements to determine the winning number based on the rotation. I am tracking the rotation in the output panel. I want my rotation to go between 0 and 360, but the output panel trace 0-180, then it starts from "-180-0."

    The wheel can turn several times. No idea how to keep the positive numbers between 0 and 360, and do not have to write my if else to accommodate negative numbers?

    Thank you!

    var rot: Number = (whatever._rotation+360)%360;

  • do not take into account the negative numbers

    I have a column of numbers I would like to add, but I want only to add positive numbers and ignore the negative numbers. How to do?

    I suggest that you use SUMIF.

    The result I got for this formula was 11... -4 was NOT included in the SUM

  • How to make a balance in numbers?

    For my control and Visa accounts I download a .csv file, and then add a column and want to create a running balance.  In Excel, you don't the formula and then fill down.  How do you get that number?

    Hi Lee,.

    The process is the same in number, enter the formula in the first line of the table non-en-tete, and then fill down.

    The kicker, of course, is 'What formula?' and the answer to that depends on the structure of your table.

    If the deposits and withdrawals are recorded in the same column (eg. (D) and is distinguished by withdrawals recorded in negative numbers and the initial balance is in cell D2, then the formula is

    = SUM(D$2:D2)

    Filled down, reference D$ 2 will remain sharp at D2, D2 reference (without the operator $) will point to the cell in the current row of column D, and the formula returns the total of all values in column D.

    If deposits and withdrawals are distinguished by being lists in separate columns (say d, withdrawals, deposits in E) all entered as positive numbers, then enter the opening as a deposit in D2 and use this formula:

    = SUM(D$2:D2)-SUM(E$2:E2)

    Each formula is entered in row 2 of the column that holds the balance running and filled until the end of the table.

    Kind regards

    Barry

  • How to lock the numbers on my keyboard on my HP 810-135qe

    I want to be able to lock my keyboard in position numbers we on my my 810-135qe want to prevent having to do so every time I log on.

    Ron, welcome to the forum.

    If you have upgraded to win 8/8.1 and you have "Fast Startup" enabled, it can help to turn it off.

    Please click on the Thumbs up button '+' if I helped you and click on "Accept as Solution" If your problem is resolved.

  • How to write the formula 'SUMIF' by the numbers

    Hi all

    I am trying to write a formula that will summarize only positive numbers.  The added column is filled with positive and negative numbers, and I thought that a simple SUMIF (range), > 0 would work.  I tried with and without '> 0' but I keep getting the error icon.  Am I doing something wrong, this generally works on Excel but do not know if the numbers has a structure of different formula.  Thank you

    You can summarize a range (say the column was) like this:

    = SUMIF (A, "> 0")

    If you had the "value comparison" in a cell (cell B1 of perhaps), then you can also use:

    = SUMIF (A, ">" & B1)

Maybe you are looking for

  • How to restore my email account - there is no return to the top

    I tried to backup to an external hard drive. It did not work. When I went to open thunderbird, none of my messages or folders were there. How can I get back them.

  • HP Mini 1151nr, Windows 7 drivers

    OK... so the site has a driver for this device, the driver for the CARD.  Nothing for the graphics. audio, usb, hard drive, chipset... nothing I'm hoping that someone has drivers for this small unit. Thanks in advance for any info provided D

  • Vista valid, but still "not authentic".

    I recently received a message after starting to validate our copy of vista professional.  He validated successfully, but the message "not authentic" is displayed in the lower right. We have activated and validated months ago, so it is a validation. T

  • X 1 button carbon stuck to .6ghz

    Hi, I just got in 4 X 1 in and one of them is stuck in .6hz CPU frequency according to the Task Manager.  No other it and banchmarks show that it is running at less than half speed. I put the power management e maximum performance and it made no diff

  • Question on C:\Program Files\Windows Sidebar\Sidebar.exe C:\Windows\System32\mctadmin.exe

    I have them turn off I didn't know what they are. Location: HK_CU:Run, side panel (DISABLED)where: S-1-5-19...command: %ProgramFiles%\Windows Sidebar\Sidebar.exe/autorunfile: C:\Program Files\Windows Sidebar\Sidebar.exesize: 1174016MD5: 04271B50F0EA2