values of band slider min max avg

Is it possible to isolate statistical quantities of a set of data (specifically to the search for medium and minimum maximum) via the cursor to tape and to display these values IN the display of the 2011 tiara (IE without the data from markup, make a copy of it and then run the scan)? Any help would be greatly appreciated.

Hi Brad,

In fact, I called technical support and got my problem solved. Please guide me to this example however. It has been extremely helpful.

Tags: NI Software

Similar Questions

  • Button double slider (min/max)

    Hello

    I'm working on a project of calculator with sliders. 1 cursor should now have a double-button with min and Max tried to use other examples, but I can't work in the current script. I hope someone can help me.

    It must be double:

    slide of skills

    skillSb.addEventListener (Event.CHANGE, onSkilChange)

    [code] import fl.controls.ComboBox

    import fl.controls.Slider

    import fl.controls.DataGrid

    import fl.controls.dataGridClasses.DataGridColumn

    import fl.data.DataProvider

    ///////////////////////////

    var levelArray:Array = new Array ("disastrous", "miserable", "mediocre", 'low', 'insufficient', 'fair', "solid", "excellent", "wonderful", "exceptional", "brilliant", "beautiful", "worldclass", "supernatural", "titanic", "alien", "mythical", "magical" and "utopian", "divine")

    var trainingArray:Array = new Array ("Guardians", "Defense", "Defensive Positions", "Crossing", "WingAttack", "Abyssal", "Rating", "Fire", "Short pass", "thanks to", "Set Pieces")

    var trainingBase:Array = new Array (3.0206,5.4824,10.9648,3.2341,5.3902,4.6613,4.8536,8.0893,4.2989,5.0575,0.9938)

    slide years

    yearsSb.addEventListener (Event.CHANGE, onYearsChange)

    slide of days

    daysSb.addEventListener (Event.CHANGE, onDaysChange)

    slide of skills

    skillSb.addEventListener (Event.CHANGE, onSkilChange)

    slide of sublevel

    subSb.addEventListener (Event.CHANGE, onSubChange);

    coach slide

    coachSb.addEventListener (Event.CHANGE, onCoachChange)

    assistans slide

    assSb.addEventListener (Event.CHANGE, onAssChange)

    slide of intensity

    intensitySb.addEventListener (Event.CHANGE, onIntensityChange)

    slide of endurance

    staminaSb.addEventListener (Event.CHANGE, onStaminaChange)

    for (var i = 0; i < trainingArray.length; i ++) {}

    trainingCb.addItem ({label: trainingArray [i], data: trainingBase [i]})

    }

    trainingCb.addEventListener (Event.CHANGE, changeEvent)

    trainingCb.selectedIndex = 0

    DataGrid

    CGI Columns = ['week', 'Skills', 'Length', 'âge'];

    var weekCol:DataGridColumn = new DataGridColumn()

    weekCol.dataField = "Week"

    weekCol.sortOptions = Array.NUMERIC;

    weekCol.width = 50

    dg.addColumn (weekCol)

    var skillCol:DataGridColumn = new DataGridColumn()

    skillCol.dataField = "Skill"

    skillCol.width = 150

    skillCol.sortOptions = Array.NUMERIC;

    dg.addColumn (skillCol)

    var lengthCol:DataGridColumn = new DataGridColumn()

    lengthCol.dataField = "Length"

    lengthCol.width = 75

    dg.addColumn (lengthCol)

    var ageCol:DataGridColumn = new DataGridColumn()

    ageCol.dataField = "Age"

    ageCol.width = 75

    dg.addColumn (ageCol)

    variables

    var: number

    var days: Number

    var yearsFactor:Number

    var level: number

    var sublevel: Number

    var levelFactor:Number

    var trainingFactor:Number

    var coachFactor:Number

    var assistentsFactor:Number

    intensity: number var

    endurance: number var

    weeks: number var

    var skillUp:Number

    var baseLevel:Number

    var newLevel:Number

    commissioning chart mc

    var graphMc:MovieClip = new MovieClip()

    graphMc.x = 80

    graphMc.y = 680

    for (i = 0; i < levelArray.length; i ++) {}

    var skilLab:skillLabel = new skillLabel()

    skilLab.txt.text = levelArray [i]

    skilLab.name = "sl" + i

    skilLab.x = 30

    var graphPoint:point = new focus()

    graphPoint.name = "gp" + i

    graphMc.addChild (skilLab)

    graphMc.addChild (graphPoint)

    }

    addChild (graphMc)

    events

    function onYearsChange (e) {}

    yearsVal.text = yearsSb.value.toString)

    Calc()

    }

    function onDaysChange (e) {}

    daysVal.text = daysSb.value.toString)

    Calc()

    }

    function onSkilChange (e) {}

    skillVal.text = levelArray [skillSb.value - 1]

    Calc()

    }

    function onSubChange (e) {}

    subVal.text=((subSb.value)/10).toString)

    Calc()

    }

    function onCoachChange (e) {}

    coachVal.text = levelArray [coachSb.value - 1]

    Calc()

    }

    function onAssChange (e) {}

    assVal.text = assSb.value.toString)

    Calc()

    }

    function onIntensityChange (e) {}

    intensityVal.text = intensitySb.value.toString)

    Calc()

    }

    function onStaminaChange (e) {}

    staminaVal.text = staminaSb.value.toString)

    Calc()

    }

    function changeEvent (e) {}

    Calc()

    }

    Calc()

    function calc() {}

    Years = yearsSb.Value

    Days = daysSb.Value

    Level = skillSb.Value

    Colourful = subSb.value / 10

    yearsFactor=Math.pow(1.0404,years+days/112-17)

    levelFactor =-1.4595 * Math.pow ((level+subLevel)/20.2) + 3.7535 *(level+subLevel)/20-0, 134 9

    trainingFactor = trainingBase [trainingCb.selectedIndex]

    coachFactor = 1 + (7 - Math.min (coachSb.value, 7.5)) * 0.091

    assistentsFactor = 1 + (1.041392685-(Math.log (assSb.value + 1)) * Math.LOG10E) * 0.2749

    Intensity=1/(intensitySb.value/100)

    Stamina=1/(1-staminaSb.value/100)

    weeks = yearsFactor * levelFactor * trainingFactor * coachFactor * assistentsFactor * intensity * endurance

    weeks = Math.Max (Weeks, 1).

    skillUp = 1/WEEK.

    To = level + sublevel

    newLevel = to

    var dosta:Boolean = false

    var weeksNo:Number = 0

    var weeksCount:Number = 0

    var dp:DataProvider = new DataProvider()

    {while (!) Dosta)}

    weeksNo ++

    weeksCount ++

    days += 7

    if(Days>111) {}

    years ++

    days = days-112

    }

    reCalc()

    newLevel += skillUp

    If ((newLevel-Level) > = 1) {}

    dp.addItem ({Week: weeksNo, Skill: (Math.floor (newLevel)) + "-" + levelArray [Math.floor (newLevel)-1], length: weeksCount + 'weeks', age: years + ' y ' + day + ' d' "})

    level ++

    weeksCount = 0

    }

    If (newLevel > = 20 | years > = 31) {}

    Dosta = true

    }

    }

    dg.dataProvider = dp

    drawGraph (dp)

    }

    function reCalc() {}

    yearsFactor=Math.pow(1.0404,years+days/112-17)

    levelFactor =-1.4595 * Math.pow (newLevel/20.2) +3.7535*newLevel/20-0.1349

    weeks = yearsFactor * levelFactor * trainingFactor * coachFactor * assistentsFactor * intensity * endurance

    weeks = Math.Max (Weeks, 1).

    skillUp = 1/WEEK.

    }

    function drawGraph (dp) {}

    If (DP. Length > 0) {}

    var lastRow = dp.getItemAt (dp.length - 1).

    var weekNo:Number = parseInt (lastRow.Week)

    var topSkill:Number = parseInt (lastRow.Skill)

    var firstRow = dp.getItemAt (0)

    var baseSkill:Number = parseInt (firstRow.Skill)-1

    var skillH = 300 /(topSkill-baseSkill)

    var weekW = 450/weekNo

    graphMc.graphics.clear)

    draw the greed

    graphMc.graphics.lineStyle(2,0xffffff)

    graphMc.graphics.moveTo (50.0)

    graphMc.graphics.lineTo (50,300)

    graphMc.graphics.lineTo (500,300)

    graphMc.graphics.lineStyle(1,0xcccccc)

    for (i = 0; i < weekNo + 1; i ++) {}

    graphMc.graphics.moveTo(50+(450/weekNo)*i,0)

    graphMc.graphics.lineTo(50+(450/weekNo)*i,300)

    }

    for (i = baseSkill; i < = topSkill; i ++) {}

    graphMc.graphics.moveTo(50,300+baseSkill*skillH-skillH*i)

    graphMc.graphics.lineTo(500,300+baseSkill*skillH-skillH*i)

    }

    draw line

    graphMc.graphics.lineStyle(2,0xff0000)

    graphMc.graphics.moveTo (50,300)

    for (i = 0; i < dp.length; i ++) {}

    var r = dp.getItemAt (i)

    var s = parseInt (r.Skill)

    var w = parseInt (r.Week)

    graphMc.graphics.lineTo(50+w*weekW,300+baseSkill*skillH-s*skillH)

    }

    for (i = 0; i < levelArray.length; i ++) {}

    var sl = graphMc.getChildByName ("sl" + i)

    SL.y = 300-skillH *(i-baseSkill+1)

    If (sl.y < 0 | sl.y > 300) {}

    SL. Visible = false

    } else {}

    SL. Visible = true

    }

    var pm = graphMc.getChildByName ("gp" + i)

    If (I < baseSkill | I > = topSkill) {}

    GP. Visible = false

    } else {}

    r = DP.getItemAt (i-baseSkill)

    s = parseInt (r.Skill)

    w = parseInt (r.week)

    GP. Visible = true

    GP.txt.Text = r.Age

    "" gp.txtW.text = r.Week + "w".

    GP.y = 300-skillH *(i-baseSkill+1)

    GP.x = 50 + w * weekW

    }

    }

    }

    }

    / * Click here to go on stage and play

    */

    Home.addEventListener (MouseEvent.CLICK, fl_ClickToGoToScene);

    function fl_ClickToGoToScene(event:MouseEvent):void

    {

    removeChild (graphMc);

    delete graphMc headphones, if there is

    graphMc = null;

    MovieClip (this.root) .gotoAndPlay (1, "scene 1");

    }

    Stop();

    [/ code]

    You doing anything with your skillmaxSb.value in calc()

    PS: you must either use a hihlighter code to put this many on this forum, or concentrate on the essential.

  • Impossible to get Min, Max and median of the values in the date range values

    Hello

    I had a requirement as to show the data of each charge group of wise men as '< 100' ' 100-199 "" 200-299 "" 300-399 "400-499, 500-599 600-699 700-799 800-899 900-999 > = 1000 '"»

    With the query be able to get the count between the beach and the total below. But impossible to get the Min and Max values for this range. For example if the County < 100 is 3 then in these 3, the lowest value is need to display in the min. Idem for Max column also.

    In the light of the median value on these values.

    Thanks in advance.



    Requirement is as below:
    State < 100 100-199, 200-299 300-399 400-499, 500-599 600-699 700-799 800-899 900-999 > = 1000 Min Total median Max
    AK 1 2 0 4 1 4 4 35 35 4 1 $25 $85 850 $1,200
    AL 0 0 2 27 10 17 35 2 2 35 0 $103 100-$1 500 750


    * "QUERY ' * '"

    WITH t AS
    (SELECT 'AL' State, 12 DUAL FROM VALUE
    UNION ALL
    SELECT 'AL' State, 67 FROM DUAL VALUE
    UNION ALL
    SELECT 'AL' State, 23 FROM DUAL VALUE
    UNION ALL
    SELECT 'AL' State, 12 DUAL FROM VALUE
    UNION ALL
    SELECT 'AL' State, 12 DUAL FROM VALUE
    UNION ALL
    SELECT 'AL' State, 78 FROM DUAL VALUE
    UNION ALL
    SELECT 'AL' State, 34 FROM DUAL VALUE
    UNION ALL
    SELECT 'AL' State, 4 DUAL FROM VALUE
    UNION ALL
    SELECT 'AL' State, 12 DUAL FROM VALUE
    UNION ALL
    SELECT 'AL' State, 15 VALUE FROM DUAL
    UNION ALL
    SELECT "AZ" State, FROM DUAL VALUE 6
    UNION ALL
    SELECT "AZ" State, 123 FROM DUAL VALUE
    UNION ALL
    SELECT "AZ" State, 123 FROM DUAL VALUE
    UNION ALL
    SELECT 'MY' State, 23 FROM DUAL VALUE
    UNION ALL
    SELECT 'MY' State, 120 FROM DUAL VALUE
    UNION ALL
    SELECT 'MY' State, 456 FROM DUAL VALUE
    UNION ALL
    SELECT 'MY' State, 11 FROM DUAL VALUE
    UNION ALL
    SELECT 'MY' State, 24 FROM DUAL VALUE
    UNION ALL
    SELECT 'MY' State, 34 FROM DUAL VALUE
    UNION ALL
    SELECT 'MY' State, 87 DUAL FROM VALUE
    UNION ALL
    SELECT 'MY' State, 23 FROM DUAL VALUE
    UNION ALL
    SELECT 'MY' State, 234 DUAL FROM VALUE
    UNION ALL
    SELECT 'MY' State, 789 FROM DUAL VALUE
    UNION ALL
    SELECT "HD" State, VALUE FROM DUAL 54321).
    -End of test data
    AS T1
    (SELECT State,
    NVL (COUNT (DECODE (VALUE, 0, 0)), 0) '< 100 ',.
    NVL (COUNT (DECODE (VALUE, 1, 1)), 0) '100-199.
    NVL (COUNT (DECODE (VALUE, 2, 2)), 0) '200-299.
    NVL (COUNT (DECODE (VALUE, 3, 3)), 0) '300-399.
    NVL (COUNT (DECODE (VALUE, 4, 4)), 0) '400-499.
    NVL (COUNT (DECODE (VALUE, 5, 5)), 0) '500-599,'
    NVL (COUNT (DECODE (VALUE, 6, 6)), 0) '600-699.
    NVL (COUNT (DECODE (VALUE, 7, 7)), 0) '700-799.
    NVL (COUNT (DECODE (VALUE, 8, 8)), 0) '800-899.
    NVL (COUNT (DECODE (VALUE, 9, 9)), 0) '900-999. "
    NVL (COUNT (DECODE (VALUE, 10, 10)), 0) ' > = 1000.
    (SELECT STATE,
    CASE
    WHAT VALUE < 100 THEN 0
    WHAT A VALUE BETWEEN 100 AND 199 THEN 1
    WHAT VALUE BETWEEN 200 AND 299, THEN 2
    WHAT VALUE BETWEEN 300 AND 399 THEN 3
    WHAT VALUE BETWEEN 400 AND 499 THEN 4
    WHAT VALUE BETWEEN 500 AND 599 5 THEN
    WHAT VALUE BETWEEN 600 AND 699 6 THEN
    WHAT VALUE BETWEEN 700 AND 799 THEN 7
    WHAT VALUE BETWEEN 800 AND 899 8 THEN
    WHAT VALUE FROM 900 TO 999 9 THEN
    WHAT VALUE > = 10 THEN 1000
    END
    VALUE
    T)
    GROUP BY State)
    SELECTION STATE,
    "< 100."
    "100-199.
    "200 299",
    "300-399.
    "400-499.
    '500-599,'
    "600-699.
    "700-799.
    "800-899.
    "900-999."
    "> = 1000."
    '< 100 '.
    + "100-199.
    + "200-299.
    + '300-399.
    + '400-499.
    + "500-599.
    + '600-699.
    + "700-799.
    + "800-899.
    + '900-999 ".
    + ' > = 1000.
    in total,.
    less ("< 100",)
    "100-199.
    "200 299",
    "300-399.
    "400-499.
    '500-599,'
    "600-699.
    "700-799.
    "800-899.
    "900-999."
    ("> = 1000 ') min_val,.
    largest ("< 100",)
    "100-199.
    "200 299",
    "300-399.
    "400-499.
    '500-599,'
    "600-699.
    "700-799.
    "800-899.
    "900-999."
    ("> = 1000 ') max_val
    FROM t1
    /

    Why not keep it simple?

    WITH t AS
    (SELECT 'AL' state, 12 VALUE FROM DUAL
    UNION ALL
    SELECT 'AL' state, 67 VALUE FROM DUAL
    UNION ALL
    SELECT 'AL' state, 23 VALUE FROM DUAL
    UNION ALL
    SELECT 'AL' state, 12 VALUE FROM DUAL
    UNION ALL
    SELECT 'AL' state, 12 VALUE FROM DUAL
    UNION ALL
    SELECT 'AL' state, 78 VALUE FROM DUAL
    UNION ALL
    SELECT 'AL' state, 34 VALUE FROM DUAL
    UNION ALL
    SELECT 'AL' state, 4 VALUE FROM DUAL
    UNION ALL
    SELECT 'AL' state, 12 VALUE FROM DUAL
    UNION ALL
    SELECT 'AL' state, 15 VALUE FROM DUAL
    UNION ALL
    SELECT 'AZ' state, 6 VALUE FROM DUAL
    UNION ALL
    SELECT 'AZ' state, 123 VALUE FROM DUAL
    UNION ALL
    SELECT 'AZ' state, 123 VALUE FROM DUAL
    UNION ALL
    SELECT 'MA' state, 23 VALUE FROM DUAL
    UNION ALL
    SELECT 'MA' state, 120 VALUE FROM DUAL
    UNION ALL
    SELECT 'MA' state, 456 VALUE FROM DUAL
    UNION ALL
    SELECT 'MA' state, 11 VALUE FROM DUAL
    UNION ALL
    SELECT 'MA' state, 24 VALUE FROM DUAL
    UNION ALL
    SELECT 'MA' state, 34 VALUE FROM DUAL
    UNION ALL
    SELECT 'MA' state, 87 VALUE FROM DUAL
    UNION ALL
    SELECT 'MA' state, 23 VALUE FROM DUAL
    UNION ALL
    SELECT 'MA' state, 234 VALUE FROM DUAL
    UNION ALL
    SELECT 'MA' state, 789 VALUE FROM DUAL
    UNION ALL
    SELECT 'MH' state, 54321 VALUE FROM DUAL)
    SELECT state
         , NVL( COUNT( case when VALUE < 100 then 0 end ), 0 ) "<100"
         , NVL( COUNT( case when VALUE between 100 and 199 then 0 end ), 0 ) "100-199"
         , NVL( COUNT( case when VALUE between 200 and 299 then 0 end ), 0 ) "200-299"
         , NVL( COUNT( case when VALUE between 300 and 399 then 0 end ), 0 ) "300-399"
         , NVL( COUNT( case when VALUE between 400 and 499 then 0 end ), 0 ) "400-499"
         , NVL( COUNT( case when VALUE between 500 and 599 then 0 end ), 0 ) "500-599"
         , NVL( COUNT( case when VALUE between 600 and 699 then 0 end ), 0 ) "600-699"
         , NVL( COUNT( case when VALUE between 700 and 799 then 0 end ), 0 ) "700-799"
         , NVL( COUNT( case when VALUE between 800 and 899 then 0 end ), 0 ) "800-899"
         , NVL( COUNT( case when VALUE between 900 and 999 then 0 end ), 0 ) "900-999"
         , NVL( COUNT( case when VALUE >= 1000 then 0 end ), 0 ) ">=100"
         , count( value ) "total"
         , min( VALUE ) "min"
         , max( VALUE ) "max"
         , avg( VALUE ) "avg"
         , median( value ) "median"
    from t
    group by state
    
  • Connection pool with the OAS and the optimal value of min/max

    Hello world


    I have ", works with admin app to implement under oracle application server connection pool. The current value is min = 0, max = unlimited which I think means not implemented connection pool.

    Anyway I don't have a lot of information on connection pooling, I searched the forums, but I'm not able to find any useful information.


    My Manager would like to know what is the optimal value for min/max for the database, is there a specific formula or a tool that can help me on this issue?


    Thanks in advance.

    Hello

    It's a specific formula or a tool that can help me on this issue?

    The value that you specify for the number of connections and connections Min depends on a combination of factors, including the size and configuration of your database server and the type of the SQL operations that
    your application runs.

    For connection pooling,.
    First, check what is the value of 'process' located on the end of DB (for your current value, check v$ resource_limit at the end of db)...
    for example if the process is set to "1000", you cannot set the maximum value of the connection pool to the end server application above 1000 it will crash your database.

    now on the server side Application.
    As a best practice, set the maximum number of open connections and Minimum of connections open to the same value.

    For more details on connection pool and its settings.
    Check "Setting Up Data Sources - Performance Issues" of the link pdf below

    docs.oracle.com/cd/B14099_19/core.1012/b14001.pdf

    Hope that it would be useful

    Concerning
    Fabian

  • Values discrete table slide

    Hello. I have a 1 d array of double for example [1, 2.5, 3, 6,8, 10] and I would do a regulator to behind the scenes, where the user can choose only those exact values. Please note that this example vector is very low and in fact I vector 'time' it had been longer, 100 numbers, so some manual Insertion is not an option .

    I have already searched in 'property node', but did not find anything useful.

    Thank you in advance.

    The table is always sorted?

    You could use "threshold" with the value of your slide and the table of valid points sorted, round off the result to the nearest index, then use the table to index to get the valid value for further processing.

    You can also subtract the value your table silde, take the absolute value of the result and use table min & max to find the index of the closest point.

    Once the slide is released, you can write the valid value back to the slide (don't fight the user when it is running it!).

    A better solution would be to use a whole blade where each value is the index of the array element. Hide digital display and scale and show the value of something that looks like a digital display, but is actually a separate indocator.

  • min/max with outputs ttl statistics

    This is a weird problem. I have attached the worksheet because it is difficult to explain the problem. First of all, let me explain what this thing is supposed to do. A generator of signals outputs sine 5Vp - p, in addition to four. After being added, I use a module of statistics to determine the Min/Max. All I need is the maximum, the minimum is ignored (I'm only looking to the + pics). The + peaks are evaluated to identify uniquely to the final output, which sinewave (s) have been entered in the worksheet. Since I finally need 16 - bit I had to add a scalar unit (scale module) to create the entry 16 (max 15 son allowed an output) by expanding the 15th input to two outputs. I see the expected level of TTL is issued by the module of statistics on three modules Y/t diagram. This tells me that things seem a little work at the exit of the module of SEO (the values of hysteresis in the stat module need to be tweaked to produce all the unique values (16), but it works at least. The problem is that the module of bitmask (set to combine tips - 16-bit conversion for a wide release) generates no output regardless of sinewave different combinations of entry. I thought that I have had set a good example of C.J. provided. I hooked of DMM to also monitor the inputs to the module of bitmask (called 16-bit encoder) - I can't get the digital multimeter to display the output of the module of the stat, but the modules Y/t show the output TTL values there. Both show the modules expected to show which is output, but don't--that intrigues me. The frequency of the sine wave is set to 1,2,4 & 8 Hz for debugging, so I know it is not too fast for the DMM display - I proved this by connecting the sum as an input for the senior DMM sinewave and it displays the voltage changes without problem.

    Thus, the two questions are: 1) why the DMM is not working at the release of the Y/t modules or Module Min/Max of Stat?  (2) why the bitmask Module cannot evaluate its entries? The added sine wave is continuous and constant phase.

    Any help would be appreciated. This has really baffled me, trying to debug.

    It dawned on me that the DMM is placed where they will not work because they are supposed to show a too short period of tension. They would appear between 5V and 25V depending on the number of 5V wfm summary, but each TTL output, they try to show are nothing more than the duration milliseconds--not a good application for a DMM. Now, it's just a question of what is the problem with the 16-bit conversion package around!

    Any suggestions on the problem?

  • Min/max to accumulate dasylab peaks? Is this possible?

    In collaboration with Dasylab 10.  I'm looking to collect peaks min/max on a form of sinwave we will run.  Is this possible?  If so, how?  Or I have to just to oversample and sift through data?

    Thank you!

    Select this option.

    Use the statistics module called Minimum / Maximum.

    This will display the value (you choose minimum, maximum or both), or will display a TTL signal, with a peak TTL (5V) to record highs.

    Adjust the hysteresis value to avoid detection from noise and spikes, or use a moving average to smooth out the signal.

  • Bug min &amp; Max?

    Hi all

    I noticed a strange behavior in the min & Max node in the snippet below. It is set to compare items. According to the size of array, as determined by 'Dimension' the resultant y table for the 'Signal' gives different results.

    It is supposed to read:

    NaN, 1, 1, 1, 2, 2, 2, NaN...

    But when I get a value for the 'Dimension' of 16 or more, it reads:

    NaN, NaN, NaN, NaN, NaN, 2, 2, 2...

    For small values of 'Dimension', the code snippet works as expected.

    With the help of probes, it seems that min (NaN; x) = x for tables with 15 elements and less and larger paintings is min (NaN; x) = NaN

    Certainly it is not provided for

    I guess I'm missing something obvious and I'm about to learn something.

    Or is it really a bug?

    With the help of LV 2011 SP1

    Concerning

    Florian

    A solution to your problem is to put a loop around the comparison.  It will give consistent results.

    What I find interesting, it's the result of more than 16 items of tables is the same that if you compare the aggregates.

    It also has appearss to be precise to NaN.  If you use a different value for your table, you don't see the value changes.

    I can also confirm the same behavior in LV2012.

  • Get the date range min/max for consecutive events.

    Hi all...

    I am fairly new to the programming of the DB and is working on some examples I picked up a few places. The database version is 10g R2.

    I would like to configure the data here and I can explain my requirement.

    create table table_1
    (product_id varchar2(25),
    region_id  number,
    event_id number
    event_date date,
    event_status number(1))
    /
    
    
    

    Now the data because it is->

    insert into table_1 values ('Prod-1',10, null, to_date('01-feb-2014','dd-mon-yyyy'),null)
    /
    insert into table_1 values('Prod-1',10, 1001, to_date('10-mar-2014','dd-mon-yyyy'), 1)
    /
    insert into table_1 values('Prod-1',10, 1001, to_date('20-mar-2014','dd-mon-yyyy'), 3)
    /
    insert into table_1 values('Prod-1',10,1002, to_date('01-apr-2014','dd-mon-yyyy'), 1)
    /
    insert into table_1 values('Prod-1',10, 1002, to_date('10-apr-2014','dd-mon-yyyy'), 3)
    /
    commit
    /
    
    
    
    

    If the table now contains the following data

    select * from table_1; 
    
    
    

    PRODUCT_ID REGION_ID EVENT ID EVENT_DAT EVENT_STATUS

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

    Prod-1 10 1 February 14

    Prod-1 10 1001 10 March 14 1

    Prod-1 10 1001 20 March 14 3

    Prod-1 10 1002 1 April 14 1

    Prod-1 10 1002 April 10, 14 3

    Now, the condition is as follows:

    Above is the dates start and end for the tests on a product in a given region. The event_status column indicates the dates of beginning and end. Event_status = 1, for the date of beginning and the event_status = 3 of the end date.

    A new event is now coming from March 21 and ending on March 31.

    The power required is a product identifier / region; If there are events that are ending and then count the days, for example, 1001 to end on March 20, but now the new event begins on 21 March... and the new event ends on 31 March and event 1002 begins 01 - Apr... and so on.

    The output required for this is as follows:

    PRODUCT_ID REGION_ID EVENT_MIN_DATE EVENT_MAX_DATE

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

    Prod-1 10 10 14 March 10 April 14

    The output should give a product identifier / region, when events are immediately after the other, out the min date of beginning and end of max for all these manifestations of "back to back".

    Now I wrote the code for this, but it goes into a purely 'loop' for application in PLSQL... But my head tells me that if the results are correct. the PLSQL implementation is not the most efficient and effective way.

    Can someone help me to form the query? I tried to use functions analytical min/max but it gives me the start and end dates back even if my events are not "back to back" or previous/succeed each other... so my query result is not quite correct.

    Am reading on the TYPE clause but would be grateful if someone could help me with this query... or any other form better to implement this event so PLSQL can be used. The database version is 10g R2.

    Thank you

    K

    PS - The number of such events back to back is limited to 4 and the events could be created in any order. But if someone could help me with the scenario above; am sure I could make a request addressed to any change in the order. :-)

    No this isn't a recursive with clause, perhaps the UNION ALL you got confused. She will work with 10g.

    Since there are 2 tables that you said, the block all_data brings together only the lines of the two tables. table_1 start_date and end_date are built from the event_status (where the max in group by).

  • Min / Max in the subquery

    I'm currently doing tests on Oracle, Postgres and MySQL.
    However, Oracle returns me "ORA-00934: Group feature is not allowed here" the same query works with others.

    The idea is to return first, Min, Max, last prices for one day on a particular ID.
    SELECT
      quotes.id,
      min(quotes.received_time) as opening_time,
      (SELECT ask_price FROM "price_quotes" WHERE id=quotes.id AND received_time >=timestamp'2012-12-10 00:00:00' AND received_time < timestamp'2012-12-11 00:00:00' AND received_time=min(quotes.received_time) ) AS opening_price,
      (SELECT received_time FROM "price_quotes" WHERE received_time >=timestamp'2012-12-10 00:00:00' AND received_time < timestamp'2012-12-11 00:00:00' AND id=quotes.id and ask_price=min(quotes.ask_price) LIMIT 1) as min_price_time,
      min(quotes.ask_price) as min_price,
      max(quotes.received_time) as closing_time, 
      (SELECT ask_price FROM "price_quotes" WHERE id=quotes.id AND received_time >=timestamp'2012-12-10 00:00:00' AND received_time < timestamp'2012-12-11 00:00:00' AND received_time=max(quotes.received_time)) as closing_price,
      (SELECT received_time FROM "price_quotes" WHERE received_time >=timestamp'2012-12-10 00:00:00' AND received_time < timestamp'2012-12-11 00:00:00' AND id=quotes.id and ask_price=max(quotes.ask_price) LIMIT 1) as max_price_time,
      max(quotes.ask_price) as max_price
    FROM
      "price_quotes" quotes
    WHERE
      quotes.received_time >= timestamp'2012-12-10 00:00:00' and quotes.received_time < timestamp'2012-12-11 00:00:00'
      AND quotes.id = 668792
    GROUP BY quotes.id ORDER BY quotes.id ;
    I tried to use HAVING and pass the query to the place WHERE but no luck.


    This is the Create Table:
    CREATE TABLE "price_quotes"
    (
       id number(8),
       received_time timestamp, 
       mid_price float, 
       bid_price float,
       ask_price float,
       mid_yield float,
       bid_yield float,
       ask_yield float,
       mid_spread float,
       bid_spread float,
       ask_spread float,
       product_id number(8), 
       product_yield float,
       PRIMARY KEY ( id , received_time )
    );
    Sample data:
    INSERT INTO "price_quotes" VALUES ( 668792, timestamp'2012-12-10 08:00:00', 103, 120, 110, 7, 8, 9, 2.100, 3.050, 4.28999, 29, 1.050);
    INSERT INTO "price_quotes" VALUES ( 668792, timestamp'2012-12-10 10:00:00', 99, 98, 100, 4, 2, 3, 0.100, 0.050, 0.28999, 24, 0.050);
    INSERT INTO "price_quotes" VALUES ( 668792, timestamp'2012-12-10 16:00:00', 100, 99, 101, 5, 3, 4, 0.200, 0.100, 0.29999, 25, 0.100);
    INSERT INTO "price_quotes" VALUES ( 668792, timestamp'2012-12-10 17:00:00', 10, 9, 11, 1, 2, 3, 0.210, 0.330, 0.99, 15, 1.100);
    Oracle: 11.2.0.1.0

    Published by: 986853 on February 7, 2013 12:23

    Hello

    986853 wrote:
    Thanks for the info, I have edited and corrected the post.

    Thank you.
    Be sure to post the results desired from these sample data.

    This is the Create Table:

    CREATE TABLE "price_quotes"
    (
    id number(8),
    received_time timestamp, ...
    

    In Oracle, the names of table in double - quotes are a huge pain.
    In addition, if you do not need to register the fractions of a second, use DATEs instead of TIMESTAMPs. They are more effective, and there are a lot more built-in features for dealing with DATEs.
    Of course, if you're trying to minimize the differences between the databases, which may influence your decision.

    Here are the results you want from the given sample data?

    `       OPENING    OPENING  MIN_ CLOSING    CLOSING MAX_PRICE   MAX_
         ID _TIME       _PRICE PRICE _TIME       _PRICE _TIME      PRICE
    ------- ---------- ------- ----- ---------- ------- ---------- -----
     668792 10-DEC-12      110    11 10-DEC-12       11 10-DEC-12    110
            08.00.00.0               05.00.00.0         08.00.00.0
            00000 AM                 00000 PM           00000 AM
    

    Here's a way to recover them with the FIRST and LAST fucntions aggregate:

    SELECT       id
    ,       MIN (received_time)     AS opening_time
    ,       MIN (ask_price)
               KEEP (DENSE_RANK FIRST ORDER BY received_time)
                                    AS opening_price
    ,         MIN (ask_price)     AS min_price
    ,       MAX (received_time)     AS closing_time
    ,       MIN (ask_price)
               KEEP (DENSE_RANK LAST  ORDER BY received_time)
                                    AS closing_price
    ,       MIN (received_time)
               KEEP (DENSE_RANK LAST  ORDER BY ask_price)
                                    AS max_price_time
    ,       MAX (ask_price)     AS max_price
    FROM       price_quotes
    WHERE       received_time     >= TIMESTAMP '2012-12-10 00:00:00'
    AND       received_time <  TIMESTAMP '2012-12-11 00:00:00'
    -- AND        id           = 668792
    GROUP BY  id
    ORDER BY  id
    ;
    
  • Purpose of the ORDER BY clause in the analytic function Min Max

    I was always using analytical functions like Min Max without ORDER BY clause. But today I used with the ORDER BY clause. The results are very different. I would like to know the purpose of the ORDER BY clause in Min, Max and analogues of analytical functions.

    user10566312 wrote:
    I was always using analytical functions like Min Max without ORDER BY clause. But today I used with the ORDER BY clause. The results are very different. I would like to know the purpose of the ORDER BY clause in Min, Max and analogues of analytical functions.

    It is a good point that many developers are not so aware. As far as I understand it the way it works.

    Some analytical functions do not need an order by or windowing clause (SUM, COUNT, MIN, etc.). If there is no specified window, then the full score is the window.
    As soon as you add a command also add you a windowing clause. This window has the default value of 'rank ofrows between unbounded preceding and current_row. So as soon as you add an order by clause, you get a sliding window.

    Documentation: http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions001.htm

    windowing_clause
    ...
    You cannot specify this clause unless you specified the order_by_clause. Window limits defined by the clause RANGE you can not specify only a single expression to the > order_by_clause. Please refer to 'Restrictions on the ORDER BY Clause'.

    example of

    with testdata as (select 10 numval, level lv from dual connect by level < 10)
    select lv, numval, sum(numval) over () sum1, sum(numval) over (order by lv) sum2
    from testdata;
    
    LV NUMVAL SUM1 SUM2
    -- ------ ---- ----
     1     10   90   10
     2     10   90   20
     3     10   90   30
     4     10   90   40
     5     10   90   50
     6     10   90   60
     7     10   90   70
     8     10   90   80
     9     10   90   90 
    

    Published by: Sven w. on 25 Sep 2012 16:57 - default behavior has been corrected. Thanks to Chris

  • Min - Max not generating Req

    Hello

    Created new point... when executing mini-maxi planning... does not have...
    Is not at hand... is the values min and max in general planning... source has the value provider.
    Sourcing rule has been defined and added to the game for the assignment
    All the attributes at the level master and org are same

    Please notify

    Thank you
    Mahendra

    . So for the generation of work arrested for make point...

    If you expand items on min - max, you must run WIP mass load after the report of the min - max.

    Sandeep Gandhi

  • Requests for details of the seller for a Min Max

    Hi all
    When Max Min trigger interface requisition lines, we must get the seller details also filled.
    This has put in place to get these. Because when I run a Min - Max planning report, I don't get the details of the seller.
    We have, in fact, we have one with one provider and the location of the seller
    Help, please.

    OK so everything sounds good... can you confirm that created requisitions (once this audit is performed) are triggered by the execution of State Min - Max. You can check these below 2 audits

    (1) type of source req will be Inv

    (2) the date of creation request must match with your execution time of State mini-maxi and the item, qty should be report to article output values and Reorder Qty

  • Sourcing rule works with min - max?

    Hello

    (1) Will Sourcing rule works with min - max planning? How?

    (2) and how you decide who use elements of planning elements u and wich Min - max, to the point of replenishment of development?

    Published by: 832641 on February 4, 2011 19:35

    (1) Yes, sourcing will work in the same way that it works with other sources such as kanban, etc. of the PSO. You must define the ASL for the rule point and sourcing with the corresponding transfer game.

    (2) according to my understanding logically point re - order is nothing but Min - Max, min, and max equal to Min value of the stock you want to maintain for the item

  • Question about GROUP BY and double aggregation for example MAX (AVG (val))

    Good evening/morning,

    I am struggling with what is probably a simple problem.

    The objective of the exercise is to display the highest average earnings and his Department (with the EMP table).

    Easy to get the maximum average wage:
    select max(avg(sal)) as max_avg_sal
      from emp
     group by deptno;
    I could not figure out how to change this query to get the deptno associated AVG. max. Gave up on changing this query and came to this:
    select deptno,
           avg_sal as max_avg_sal
      from (
            select deptno,
                   avg(sal) as avg_sal
              from emp
             group by deptno
             --
             -- order causes 1st row to have the max(avg(sal))
             -- this will be exploited in the where of the outer query
             --
             order by avg_sal desc                                             
           )
     --
     -- get only the first row since that one has the values we want
     --
     where rownum <= 1;
    This works, but feels pretty disappointing compared to the simplicity of the first query (which I couldn't the deptno on.) That is the request more simple with that I could come.

    The QUESTION is:

    The query above is really the way simpler and easier to get the maximum average and its associated department number? If it isn't, I'm more interested in your simplest solution. :)

    Could someone to laugh at one of the alternatives that I came up with a "simpler": solution
    with x as
      (
       select deptno,
              avg(sal) as avg_sal
         from emp
        group by deptno
      ),
      max_avg_sal as
      (
       select max(avg_sal)                  as asmax
         from x
      ),
      deptno_max as
      (
       select deptno                        as dnmax
         from x where avg_sal = (select asmax from max_avg_sal)
      )
    select (select asmax from max_avg_sal) as max_avg_sal,
           (select dnmax from deptno_max)  as deptno_max
      from dual;
    The road to hell is simple, it is paved from selects < chuckle >,.

    Thank you for helping,

    John.

    Hello
    Try this

    SELECT MAX(AVG(sal)) AS max_avg_sal,
           MAX(DEPTNO) KEEP (DENSE_RANK FIRST ORDER BY AVG(SAL) DESC )  DEPTNO
    FROM scott.emp
    GROUP BY deptno
    

    Kind regards
    Anthony Alix

Maybe you are looking for

  • Old IMAC and new HP printer problem

    I have an IMAC 10.6.8 who I am trying to download and install the software for a new printer HP Officejet pro 8710.  He said that it is only compatible with 10.7 and upward.  Is there a way to get around this? or do I need to get a new IMAC or other

  • bitmap image

    I am using paint.  I want to save a picture as bmp.  What is the difference in 16 colors, 24-bit, and 256 color bitmap?

  • My Dell Precision Workstation 690 cannot boot from the drive - I need help

    My Dell Precision 690 Workstation is unable to boot from the CD Rom what's happening, it's that when I boot it (revision of BIOS A05) and I go to the Boot menu and boot from the CD Rom it says floppy seek failure. I don't know how to solve this probl

  • Contact Adobe support is IMPOSSIBLE.

    Each click on a "need to support" button leads to the same page over and over again. It makes me crazy. The very complexity of this terrible site is amazing, I just extend my educational subscription. Want you people to buy a membership even?

  • Tries to cancel the announcement... so far without success...  HELP PLEASE

    I thought that I had cancelled my membership earlier this month and I received an email saying WELCOME BACK?  Help, please.  I would like my subscription to the end and credit return any payment made for October.