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

Tags: Business Intelligence

Similar Questions

  • 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

  • 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

  • I have the time to default iPhone 4 iOS 7.1.2 iPhone App not updated since the last 3 days and also checked all the settings for location and also set as new iPhone always present problem... Please try to fix... Thanx

    I have the time to default iPhone 4 iOS 7.1.2 iPhone App not updated since the last 3 days and also checked all the settings for location and also set as new iPhone always present problem... Please try to fix... Thanx

    Turn off your device and turn it on again. If this does not help, sign out of your account and reconnect.

    In addition, you can try to reset your settings.

    • Press and hold the sleep/wake button
    • Press and hold the Home button
    • Press and hold both buttons until the display turns off and on again with the Apple logo on the subject.

    Alternatively, you can go to settings - general - reset - Reset all settings

  • 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.

    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

  • 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.

  • I have 2 versions of windows vista running on my computer. One is before it crashed and it took all the RAM (Ram)

    I can't clean the discs because I can't load any programs because the memory has faded.  So I can not put a page of my computer desktop or download programs, I need to get my images that I have on the other program running.  I can't open one of these programs because I don't have the authorization even if I was always the user and administrator.  What I would do.  Can I add more memory Ram?  Can I remove the old stuff that I can't open anyway.  DLLs etc.  I downloaded vista 2pr, but it does not work.

    Hello

    Here is the information from your other question here about it:

    "I can't collect any information of my system information page."  When I connect I get redirected to a page that asks me what version of vista I want to open.  One is Microsoft vista and the other is windows vista.  The Microsoft is the only one that works. The other takes me a blank page. »

    "I have 2 versions of windows vista running on my computer. One is before it crashed and it took all the RAM (Ram).

    I suggest that you save your data and reinstall the operating system properly.

    There are several methods to reinstall Vista.

    See what methos works for you.

    There is no Windows Vista downloads available from Microsoft.

    You can contact your computer manufacturer and ask them to send you a set of recovery disks.

    They should do this for a small fee.

    To reinstall Vista using their recovery disk/s, you start from the 1st recovery disk they provide and follow the manufacturer's instructions to reinstall:

    You need to change the Boot order to make the DVD/CD drive 1st in the boot order:

    How to change the Boot order in BIOS:

    http://pcsupport.about.com/od/fixtheproblem/SS/bootorderchange.htm

    "How to replace Microsoft software or hardware, order service packs and replace product manuals.

    http://support.Microsoft.com/kb/326246

    And if you have never received a recovery disk when you bought your computer, there should be a recovery Partition on the hard drive to reinstall Vista on how you purchased your computer.

    The recovery process can be started by pressing a particular combination of the key or keys at startup. (Power on / start)

    Maybe it's F10, F11, Alt + F10, etc., depending on the manufacturer.

    Ask them to the proper key sequence.

    And if you do not score a manufacturer of recovery on your hard drive, you should be able to make your own recovery from her disks to reinstall the operating system.

    Go to programs > name of the manufacturer of your computer > then their system or recovery tools software topics for them, depending on how it is formulated.

    If you can't find any reference to it, contact the manufacturer for advice on how to make these recovery disks.

    Some manufacturers have more available Vista recovery disks.

    If this happens, you may need to try this instead:

    You can also borrow and use a Microsoft Vista DVD, which contains the files for the different editions of Vista (Home Basic, Home Premium, Business and Ultimate) must be installed. The product key on your computer / Laptop box determines what Edition is installed.

    Other manufacturers recovery DVDs are should not be used for this purpose.

    And you need to know the version of 'bit' for Vista, as 32-bit and 64-bit editions come on different DVDs

    Here's how to do a clean install of Vista using a DVD of Vista from Microsoft:

    "How to do a clean install and configure with a full Version of Vista '

    http://www.Vistax64.com/tutorials/117366-clean-install-full-version-Vista.html

    And once the operating system is installed, go to your computer manufacturer's website and get the latest drivers for your particular model or laptop computer.

    And phone Activation may be necessary when you use the above installation method.

    "How to activate Vista normally and by Activation of the phone '

    http://www.Vistax64.com/tutorials/84488-activate-Vista-phone.html

    See you soon.

  • Using a Mac OSX updated 10.9.5, to update to the latest update of Lightroom, now get error - Lightroom met permission issues. Click on fix - cannot fix. You click on read more and I tried all the solutions. Always error. Uninstalled and reinstalled - alwa

    Using a Mac OSX updated 10.9.5, to update to the latest update of Lightroom, now get error - Lightroom met permission issues. Click on fix - cannot fix. You click on read more and I tried all the solutions. Always error. Uninstalled and reinstalled - always error.  Cannot set up a new admin on Gov't computer user. Help

    Please make sure that you gave permission for the folders listed in the article, follow these steps.

    1 - give read and write permissions for the Application Support folder and preferably on User Library and the secret library.

    2 - Add user and admin both permissions.

    When you open the Get Info option for specific folder.

    Make sure you click on '+' symbol, it will open the list of user accounts. Add currently logged in user account and Director of user account, if it is not added.

    Both must have read and write to prevent access these some questions in the future.

    Important:

    Once you added as currently logged on user account and administrator user accounts and provided access for reading and writing.

    Make sure you click on the gear icon and select apply to closed.

    Lock dialog box and close the Get Info .

    So that all the folders in the folder Adobe will get read and write access.

    Let us know if this helps

    ~ Assani

  • How can I retrieve all the values in a single query in the oracle XML

    Hi all

    I have xml format below, how do I retrieve all the values in a single query.

    < files >

    < job > MANAGER < / job >

    < details >

    < ename > JONES < / ename >

    < sal > 2975 < / sal >

    < ename > BLAKE < / ename >

    < sal > 2850 < / sal >

    < ename > CLARK < / ename >

    < sal > 2450 < / sal >

    < / details >

    < / documents >

    Thank you

    I prefer desgin a little more sophisticated xml and wrap the details in a separate label.

    Then you could something like that

    1 with testdata until)
    2. Select xmltype)
    3'
    4 MANAGER
    5


    6
    7 JONES
    8 2975
    9

    10
    11 BLAKE
    12 2850
    13

    14
    15 CLARK
    16 2450
    17

    18

    19
    20 ') in the form x
    21 double
    22)
    23 select
    24 j.job
    25, d.ename
    26, d.sal
    27 of testdata
    28 join
    29 xmltable ("Scriptures" in passing testdata.x)
    30 columns
    31 job varchar2 (30) path "job."
    32, details xmltype path «details»
    (33) j
    34 (1 = 1)
    left outer join 35
    36 xmltable (' details/emp' in passing j.details)
    37 columns
    path of varchar2 (30) 38 'ename' ename
    39, path of varchar2 (30) sal "sal".
    (40) d
    41 * (1 = 1)
    >/

    JOB                            ENAME                          SAL
    ------------------------------ ------------------------------ ----------
    JONES MANAGER 2975
    BLAKE MANAGER 2850
    MANAGER CLARK 2450

  • my keyboard has sometimes unresponsive, despite verified the above. Then it works again after I have shut down and restart my mac. is this normal? If this isn't the case, that due to an application? for example, I installed photoshop and use it all the ti

    Jin

    Sometimes, my keyboard stops responding, despite the checkist troubleshooting.

    Then it works again after I have shut down and restart my mac!

    is this normal? If this isn't the case, that due to an application? for example, I installed photoshop and use it all the time... also openoffice document prog...

    What else could be?

    I just replace the keyboard with a new one, but the problem persists.

    my mac has also been in mac repair and they found nothing wrong.

    Thank you!

    Please run and view a report of EtreCheck http://etrecheck.com/

  • Hi, I have just reset my Firefox and he lost ALL the TABS at the top. Bookmarks, history, leadership, Edit and Options tabs are GONE. I don't know that I named by a r

    Hi, I have just reset my Firefox and he lost ALL the TABS at the top. Bookmarks, history, leadership, Edit and Options tabs are GONE. I don't know that I named all right, but they ARE GONE. Please tell me how to get back them. Thanks, Chris

    Edit: removed your email address from the public view, since the only thing that will attract are spambots. you will be notified by email whenever someone replies to the thread, because of a bug in the forum unfortunately with a slight delay. (philipp)

    The toolbars are still on display in your browser?

    If you still have the address bar, right click on any part that is not a text box or the icon, or if you do not like that of any space right click on the three horizontal lines on the right side of the address bar window. This should show some options, click on 'Menu Bar' and the tabs you are missing should appear.

    As a side note, usually if these options are missing, your icon of firefox in the upper left corner of the window should look different (being a rectangular button itself as opposed to an icon), and the 'file', 'Edition', 'Bookmarks', etc., are found after clicking on this button.

    Hope that helps.

  • ITunes is downloading all items purchased from my iPhone, including tv shows and movies, using all the memory and batteries

    ITunes is downloading all items purchased from my iPhone, including tv shows and movies, using all the memory and batteries, does anyone know how to stop this?

    Hi anthony248,

    If you don't want the automatic downloads enabled on your iPhone, follow the steps outlined in the article below, except that you will turn off the switch rather than turn them on.  I'll also include a link about the storage capacity of your iPhone and how to delete items that you don't want.

    Turn on automatic downloads

    Check your storage space on your iPhone, iPad and iPod touch

    Take care

  • Why my internet stops now and then not all the time trying to upload links to pdf files

    I wonder if there is a problem with my computer or if I need to install a program? My internet stops now and then not all the time trying to upload links to pdf files.

    Hello

    1. what browser do you use?

    2. have you done any hardware changes or software on your computer before this problem?

    3. you receive an error message when internet no longer works?

    4. what exactly you mean by pdf files download links?

    If you use Internet Explorer, you can follow this link:

    Tips for solving problems when Internet Explorer hangs or stops working

    Reference: Cannot display PDFS on the web

    Display PDF files in Internet Explorer, AOL | Acrobat 3D, Acrobat Reader 7 7

    Hope the helps of information.

Maybe you are looking for