Maximum and minimum.

I have records in the following order:

Number of Grade
------------
16645 A
16645 B
C 16645
D 16645
16731 E
F 16731
G 16731
16732 H
16732 I
16732 J
16732 K

I get all the values in a collection.
I want to know the score maximum, minimum of each issue.
that is, for many 16645 I want slope (D) and the minimum score (A).

As I receive these values in a loop, I make one number at a time.

How can I achieve this.

Concerning
Rambeau

Published by: claire on Sep 29, 2008 09:56

It is not clear what you are trying to achieve (and why you are ordering of documents is interesting and how you maintaince records order), usually as the simple sql query

select number_column,min(grade),max(grade) from your_table group by number_column

should be enough.

Best regards

Maxim

Tags: Database

Similar Questions

  • View the maximum and minimum values on the waveform

    Hi, I have a table of waveform and want to display the values of maximum and minimum of the graph with the arrow. I tried to change with the property node, but I still haven't expected output. Could someone can help on this?

    Attached to the vi.

    I ran your VI and it seems to work, but it is difficult to report on its work for several reasons:

    1. the default annotation is black, which is difficult to see on black background graphic. Change the color of the annotation or change the color of the graph.

    2. scale there was not settled in auto-scaling, so I had to go to access my data, which makes it also difficult to locate annotations

    3 If you are using auto scale on the y-axis, the annotations will be always difficult to see because they will be outside the limits of the graphic scale car, I would recommend manually set the scales or by using the offset property label of the sliders to make the label in the view visible

    In addition, each time you add two new annotations to the curve, is this desired? If this is not the case, use a constant of cluster of annotation and a cable which, in your package names, then build a table with the poles of two annotation.

    Hope this helps,

    SoC

  • How to find the maximum and minimum of a waveform between cursors

    Hello!

    Does anyone know an easy way to find the maximum and minimum of a waveform between two sliders?

    Kind regards

    Andreas

    Hi Andreas,

    attached, you get an example of it in MeasurementStudio.

  • inverted property knots Maximum and Minimum

    I found something interesting in Maximum data properties: scale and range: Minimum data in BT 8.0.1.  I've been looking around in a fairly complex application that I stand by, but did not write to see if the strange behavior of the client is to see intermittently because of our software or something in the material and found the following:

    * There are some digital controls that must have a max and min acceptable value for the user to enter that varies according to the type of USE tested.  The max and min values are in a database and are pulled in the application by reading a TestStand FileGlobal table which was populated by a SQL query.  The table has other things like label and units as well.  The min value is the #2 element in the array and the max value is the #3 element in the table.

    * During the initialization of the user interface, the max and min values are applied to the controls using a property node that sets the data: Maximum of the scale in question #2 in the table and range: Minimum data to the question #3 in the table.  The Action range: maximum and minimum are wired to the constant 1.  * The sentence preceding is NOT a typing error, Max and Min are really wired backwards! **.

    * The code never passes through this again during its execution initialization code, but digital controls are updated by the user as required.

    This configuration should result in erronious behavior as it would have been fixed now, but in reality, it seems that the values entered into the control will behave as expected.  That is larger than the maximum values are forced up and values less than the planned min are forced to the min value.  I was able to replicate that in a .vi simplified by creating a reference to the control and providing the reference to the property node.  The reference node and property are within a structure of the diagram disable.  I have activate the node property once when I load the so digital vi 'inherits' the behavior of max and min.  I then turn off the structure and digital behaves actually force too high for as many values and low values for the smallest number and leaving the values in the Middle alone even if the max and min values are REVERSED on the property node.

    I know it's a complicated mess, but it's the application.  Can someone tell me if it is some sort of bug that could cause instability in the value if it was used as a set for something point OR has put some smarts in the properties of telemetry data which in effect say ' I know you particularly those wire either way, I will use them as you will not as you say. "?

    Here is a picture of my Simulator.

    Thanks for the help!

    Tony

    LaVIEW will sort the entries fo you so that you get a valid range.

  • maximum and minimum temperature

    Hello, I have read several posts on how to fix my problem, but unfortunately I have a problem with my VI. I want the maximum and minimum, this temperature on the front panel. I don't know if I have 2 while loops or only 1. The problem in the current VI is, when you run it, it will stay inside the while loop. If the minimum and maximum temperature will always present the same value. Could someone tell me what I need to change to allow the work of VI. Thanks for the help.

    Get rid of the loop internal so that comparison is done whenever a new number is generated.

    There are some additional things, that you can do to clean up the code, but which is essential.

  • Get the maximum and minimum of a LinearAxis value

    Hello

    If I set maximum and minimum of a LinearAxis Nan values, Flex determines that a minimum and maximum value that welcomes all data are displayed in the chart. Is it possible I can get two Flex-determined values?

    Thank you very much!
    Terry

    Hello

    If I set maximum and minimum of a LinearAxis Nan values, Flex determines that a minimum and maximum value that welcomes all data are displayed in the chart. Is it possible I can get two Flex-determined values?

    Thank you very much!
    Terry

  • setting maximum and minimum of all the values in a result set

    Hello

    I want to find the maximum and the minimum of the values in a column in the responses. For example, assume that there are three columns x, y, z, and 'x' has values 1,2,3. I want to display the result in form:

    x y z max (x) (x) min
    1 y1 z1 3 1
    2 y2 z2 3 1
    3 y3 3 1 z3

    I tried to use the Max and Min functions. But the result is displayed as

    1 y1 z1 1 1
    2 y2 z2 2 2
    3 y3 3 3 z3

    Any help is greatly appreciated.

    Thank you
    KK

    Published by: 842704 on August 16, 2011 12:44

    give in the formula in the column to the bottom of things

    Max (cast (column_name as double precision) by y, z)

    Note--> y, z are your other columns.

    Now it should work without a doubt...

    Thank you
    Ashish

  • Satellite L650-14F maximum and minimum temperature on idle

    Hello guys and I hope that my question is not absurd. What is the maximum temperature on what kind of laptop? AS some of you may know, L650-14F has a strange coolyng system: http://img580.imageshack.us/i/dsc0092111.jpg/

    for example, I play poker at PKR, 3D software and the CPU temperature is 63-68 degrees Celsius, and I idle mode, somewhere between 45-56.

    Thank you

    At first, I must say that the cooling system is not strange. One thing is confusing background of s for laptop computer plastic box. This plastic box is the same for many models of laptop computers, and these models have different cooling systems. Some of them needs cold air (down-hole), and some of them, like mine A660 have no holes on this place.

    http://img831.imageshack.us/f/dsc05017f.jpg/

    Anyway there is no reason to panic and temperature on your laptop is quite normal.

  • Need help with the analytical function select maximum and minimum of the results of the column

    Hey there OTN.

    I have an interesting application that I was hoping you would be able to help me with. I have a requirement to conditionally select the max and min of a column in bi-editor and since my editor works from an OBIEE analysis, I need store MAX and MIN of the column values in separate columns to match with. See the example below. You will notice that there are 4 stores including today's sales. I must have OBIEE through all the results of the column for sales, then choose the max of the dataset object. I can't use MAX here because he will choose the MAX of the line which will return only sales of this line. Instead, one must analyze all sales results and choose the appropriate column. Any idea on how to do this in OBIEE/publisher? Or is this not possible.

    Day Store Sales Sales of MAX Sales MIN
    05/11/15Store 1500080001000
    05/11/15Store 2750080001000
    05/11/15Store 3100080001000
    05/11/15Store 4800080001000

    I'm waiting for your answers. Thanks in advance!

    PS: I will always mark messages that are useful and eventually mark it as correct answer if we come to a resolution!

    See you soon.

    You can't do the same thing with RANK ("dirty")?

    Rank ("dirty") = 1: the max value in the result of sales

    RANK (-1 * "Sales") = 1: the min in the result of sales value

    I guess you can and then format the cells based on these values, where a value of 1 is the max or min according to the RANKING formula you used...

  • Defining the limits of maximum and minimum of a result set

    I'm putting the upper and the lower limit of a result set values. Which means, I want to limit the values in my game to be not below/above a certain number of results, BUT I want that in my result set which is bottom/top/down bound that I have designated to be decoded in the lower/upper bound number which I have appointed. Here is an example to help clarify:
    WITH temp_table AS
    (
     SELECT 1231.12 AS col FROM dual UNION ALL
     SELECT 1001.00 FROM dual UNION ALL
     SELECT -32.0 FROM dual UNION ALL
     SELECT -3.0 FROM dual UNION ALL
     SELECT 332.0 FROM dual UNION ALL
     SELECT 211.0 FROM dual 
     )
    SELECT CASE WHEN col < 0 -- 0 is the lower bound
                THEN
                     0
                WHEN col > 1000 -- 1000 is the upper bound
                THEN
                     1000
                ELSE
                     col
           END as desired_result 
    FROM   temp_table
    desired results set:
            DESIRED_RESULT
         1000
         1000     
            0
         0
         332
         211
    I was wondering if there was another function or method to achieve my goal without having to use a CASE statement? I must do this to multiple columns and it seems not very effective to launch a CASE statement around each of them.

    LESS and more GRAND that will also:

    SQL> WITH temp_table AS
      2  (
      3   SELECT 1231.12 AS col FROM dual UNION ALL
      4   SELECT 1001.00 FROM dual UNION ALL
      5   SELECT -32.0 FROM dual UNION ALL
      6   SELECT -3.0 FROM dual UNION ALL
      7   SELECT 332.0 FROM dual UNION ALL
      8   SELECT 211.0 FROM dual
      9   )
     10  SELECT least(greatest(col, 0), 1000)
     11  FROM temp_table
     12  ;
    
    LEAST(GREATEST(COL,0),1000)
    ---------------------------
                           1000
                           1000
                              0
                              0
                            332
                            211
    
    6 rows selected
     
    

    I must do this to multiple columns and it seems not very effective to launch a CASE statement around each of them.

    No matter what test case showing the case as not effective?

    Published by: odie_63 on 25 July. 2012 23:20

  • Volume is out of control (gets his "own life") - triggers ATV volume goes to the maximum or minimum in a matter of a minute.

    Hello

    I come from Apple TV.

    When turning on our ATV volume it triggers that our volume of receiver Denon drifting slowly to maximum or minimum-, it takes about 1 min to do this.

    Tried to connect directly to our Denon receiver and our Sony TV ATV. Problem happens in two configurations. I tried different options to turn off the smart controls which offers the latest HDMI - ATV standard both our TV (for example, disable the automatic volume control).

    By turning the ATV and the new (menu system) will stop the problem for awhile - but same problem returns after 1 to 5 mins.

    I spent 8 hours in the last days trying to make it work. Looks like a bug in the SW of the ATV? (i.e. Disabling smart control of ATV does not take effect).

    Desipite being impossible to use, I don't want to damage my 20K speaker system. I am close to my unit back and get a Chromecast instead.

    Any help to fix this would be appreciated!

    System: Apple TV Gen 4 + Denon AVR 2313 + Sony KDL 60w605 all the connected HDMI (and 3 other units that work very well).

    Sounds like a defective remote control.  With HDMI control off the coast, it seems possible, that the remote control is to turn off the IR signals directly to the receiver.  Try to cover the distance before or the façade.  In any case, I would return the unit.  During the test leave in the main menu and just look at the level of the volume on the receiver.  Do not play anything to avoid overload problems.

    Post your receiver model number.

  • the internal noise is at maximum and cannot be lowered

    the internal noise is at maximum and cannot be lowered

    Reset the SMC and the LANDAU and also check your settings in the system preferences. Here are the directions for the iMac SMC and the PRAM reset

  • use of substring syntax and minimum of functions together

    I used substr functions and minimum before as follows:

    <? xdofx:substr(PAY_NATURAL_ACCOUNT,1,1)? > returns '4' - it's okay
    <? xdoxslt:minimum (PAY_NATURAL_ACCOUNT)? > returns '412100' - it's okay

    Now I want to combine both - something like substr (min (pay_natural_account), 1, 1) and use in conditional formtting. I know I can't combine the functions xdofx and xdoxslt, but I can't seem to find the compatible syntax.

    Any help would be appreciated.

    Thank you
    TAM.

    A possible solution: try affecting the result of the minimum function to a variable and then using the variable in the substring function. Something like this:


    Thank you!

  • How to get the num maximum and average bytes per line per TABLE?

    I want to know the maximum and the average number of bytes including a row in a table
    uses. Can I somehow this knowledge (and these values in the form of two output columns)?

    Peter

    user559463 wrote:
    I want to know the maximum and the average number of bytes including a row in a table
    uses. Can I somehow this knowledge (and these values in the form of two output columns)?

    analyze tables and check the USER_TABLES view, pay attention to the AVG_ROW_LEN column. Not sure how the maximum number of bytes

  • Tecra M3 - questions about the RAM maximum and graphics driver update

    Hi people,

    I have a Tecra M3 (Variant FBCF with the Geforce 6600 w / 128 MB) and I have two questions that I hope someone here can help me with:

    (1) what is the maximum amount of RAM that I can install here? The manual says 2 GB (2 x 1 GB), but I do not see why the laptop would be paralyzed this necessary way, cause as far as I know the 915G chipset can handle 4 GB of RAM. If anyone knows definitively what?

    (2) the latest drivers from nvidia for XP are 2005. As most of you probably know, nvidia systematically more than past performance with versions driver and adds compatibility with some games that end up in trouble. The real driver from the nvidia site does not install because it says that it cannot find any compatible hardware. Can't Toshiba even a pilot updated annually? There is a driver of 2007 for Vista, I can't believe that if they did, they decide refresh the XP one while they were to him. Any chance of their audience on this here? I could force the nvidia.com driver to install, but I don't think that it's necessarily a great idea.

    Thank you!

    Hello

    the maximum amount specified for this machine memory is 2 GB and 4 GB not but you can try it with 2x2gb modules.

    With regard to your graphics: Don t use the nvidia driver since it is not suitable for mobile graphics chipsets and has no timing in the driver that is needed to run flawlessly.

    I'd rather you to view laptopvideo2go and download some drivers here. :)

    Welcome them

Maybe you are looking for