Trigger populate georaster (min, max, average)

Hello all,
I'm new with Oracle spatial, I saw the documentations and I have not found an answer for my question...
I frequently add georasters in the CITY_IMAGES table. They have 1 band and a number in each point.
I have an other georaster which store the min, max and average values for each point.
So how can I do to update these values each time I add a new georaster in my table CITY_IMAGES ? I think I need to create a trigger, but don't know what to do..
Thanks for your answers,
Best regards

Then you can create a dml trigger on the table CITY_IMAGES, when you get a new georaster object, in the trigger, recalculate  min/max/average value for each cell, and then update the other georaster object with these values.

Similar Messages

  • ESYU: Min-Max planning을 실행하면 자동으로  ReqImport program이 launch 되지 않는 원인

    Purpose
    Oracle Inventory Management - Version: 10.7 to 11.5.10
    REPORT:INVISMMX - Min-max planning report
    EXECUTABLE:POCIRM - Requisition Import
    Buy items에 대해 Min-Max(with Restock=Y)을 실행하면, 이 program은 ReqImport를
    자동으로 launch 시키지 못하고 단지 po_requisitions_interface_all table에 data를
    insert 한다.
    하지만 사용자는 Min-Max가 실행되면 이후 자동으로 ReqImport가 실행되길 원하고
    있다. 이를 위한 workaround 방법을 소개한다.
    Cause
    ReqImport가 Min-Max 이후 자동으로 실행되는건지, Min-Max에 의해 자동으로 실행되는지
    구분할 필요가 있다.
    ReqImport는 Min-Max에 의해 실행되지 않는다.
    Min-Max의 standard design은 단지 po_requisitions_interface_all table에 data를 넣어
    주기만 할 뿐이지 ReqImport request를 자동으로 실행시키지는 않는다.
    ReqImport는 Min-Max 진행 후 실행될 수 있다.
    왜냐하면 ReqImport는 주기적으로 실행되게 scheudling 되어 있거나, ADS_PO_REQ_IMPORT_TRG1
    와 같은 trigger에 의해 실행된다.
    일부 vision demo instances에서 위 trigger를 볼 수 있는데 이 trigger에 의해 po_requisitions_interface_all
    table에 data가 insert가 되면 ReqImport가 launch 된다.
    Note: 이 Trigger는 standard product이 아니므로 귀사의 instance에서는 찾을 수 없을 것이다.
    Solution
    1. Short-to-medium term solution at your instance:
    1-1) ReqImport가 주기적으로 실행될 수 있게 Schedule 해 놓는다.
    -- or --
    1-2) Min-Max report(Restock=Yes) 실행 후 manual 하게 ReqImport를 실행한다.
    -- or --
    1-3) Min-Max와 ReqImport programs을 포함하는 Report Set을 define 하고, Min-Max 대신
    이 Report set 만을 실행한다.
    -- or --
    1-4) po_requistions_interface_all table에 triggers(similar to ADS_PO_REQ_IMPORT_TRG1)를
    생성한다.
    2. Medium-to-long term solution from Oracle
    ER/Doc bug을 등록하고 metalink를 통해 진행과정을 check 한다.
    2-1) Enhancement Request via ER/Bug 4310485 to have Min-Max Report to fire ReqImport automatically.
    2-2) Documentation Bug 4310487 to have the INV User Guide corrected that Min-Max does NOT create Requisitions,
    but ONLY populates the po_requisitions_interface_all table.
    Reference
    Note 305099.1

  • Min/ Max interval data storage

    OK, so what I am trying to do is scan 2 voltages at 3K, temporarily write that data to a file or buffer, read the min and max values, and log those to a file once per minute. I'm at the point where I can scan and display the data, but really don't know where to go next. Any thoughts or ideas would be much appreciated. Thanks
    Attachments:
    NI-6343-2CH VDC min-max.vi ‏45 KB

    You only need a single loop. You can use the "elapsed time" express VI to signal when time has elapsed, and simply use a case structure to append the averages to the data before writing (in the false case just wire the current data across). You should also open the file before the loop, append inside the loop, and only close the file once the loop completes. You can use the min&max ptbypt VI to keep track of the min and max for each interval or just keep track of it using a shift register.
    LabVIEW Champion . Do more with less code and in less time .

  • Can we use MRP to plan for FERT in-house produced  with PIR's & has Min/Max

    Hi SAP Guru's
    I have a very critical issue from the client who wants to use MIN/ MAX stock values for planning its finished products (in-house produced)
    <b>here is the details of the scenario</b>
    Client recieves 2 Excel files every week from customer
    <b>1st</b> file contains the Weekly Demand Forecast of FERT material for next 1 year and they upload it in MD61 as PIR's <u><b>BUT</b></u> this value is also <u><b>Inclusive</b></u> of Safety stock value (<b>ex: if weekly demand entered in MD61 as PIR is 50 and if safety stock value is 10, then actual demand is only 40)</b>
    <b>2nd</b> file send contains only <b>safety stock values</b> (for ex in this case let it = <b>10</b>) to be maintained for the FERT materials
    the client wants MRP to plan and trigger based on this PIR's in MD61 and Safety stock level fand plan for FERT, HALB and also ROH materials as defined in the BOM also taking into consideration the current WIP levels (Work in progress for any existing production orders currently being processed) based on the production Lead times values maintained
    so what the client wants is they want to maintain 2 stock values, that is one least stock value and other higher value which if stock falls below this point, will trigger production based on the lead time and considering any WIP levels also
    <b>(for ex in this case if PIR = 50 and safety stock is 10, MRP run result client wants is = 30 and NOT =40)</b>
    so here are my questions
    1. is this scenario feasible? use safety stock and min/max level for in-house produced finished which has demand PIRs in MD61 at the same time?
    2. Also due to SOX complaince regulations, the client does not want to change the forecast values in MD61, so is it possible to make some settings so that forecast is corrected by WIThOUT including the safety stock value in it? ( for ex: in this case as = 40 only and NOt as 50)
    3. which all settings should i maintain like for MRP type or lot size or stock qty levels or anyother customizations if any required so that when we run MRP, can it ignore the safety stock value and generate the client desired output?
    thank u verymuch for your time & expert advice in advance

    Hi Chakri,
    This is not possible as per standard functionality. MRP always creates proposals for the shortage quantity of the safety stock. We have used the user exit in the plant level MRP run to exclude both plant and safety stock in the net requirements calculation.
    You have to write logic to convert the safety stock into plant stock in the user exit so there will be no additional procurement proposals...you can create custom indicatar in materail master or linked any existing indicator like MRP group to the user exits so the MRP will checks this and will not create proposals for the selected parts.
    If you have any questions then please inform.
    Regards
    TAJUDDIN

  • Vendor details for a Min Max requisitions

    Hi All
    When Min Max trigger some requisition interface lines, we need to get the vendor details also be populated,
    What set up it need to get these. Because when I run a Min-Max planning report, I am not getting the vendor details.
    What we have is we will be having a single item be with a single vendor and vendor site
    Please help.

    In the General planning tab for Sourcing type is it mentioned as Supplier?
    Is the use ASL flag in the Purchasing tab for the item enabled?
    The supplier and site details are active?
    The ASL for this item is still active ? (Check in the supplier line details in the ASL form)
    My funtional guy says yes to all the above quries.
    And also says All ASL have the sourcing rules assigned to the assignment set that is setup on the MRP: Default Sourcing Assignment Set profile, but this scenario is only for minmax
    So this issues is only for MIN-MAX.Please let me know if any thing to be done in setup to automatically get the
    vendor details into requistions lines of interface table based on items.
    Edited by: 834095 on Mar 14, 2011 2:59 AM

  • Min Max Planning to replenish from a single sub inventory

    I am new to this site but could certainly use some help in a problem I am having. I am on a team in the process of implement discrete manufacturing. Here is the problem I am having. I am trying to set up min/max replenishment to a specific sub inventory. We currently have a centralized fabricated (make parts) store room. From that store room we move parts to variuos supermarkets with in the factory. From the supermarkets parts are component picked or kan ban replenished. The problem that I am having is that I want the replenishment trigger back to the sheet metal fabrication area to come from the "Centralized Make" parts storeroom. It is currently adding up all the locations or sub inventories the part number resides in to include RIP. I am being told that there is no way to limit the trigger to a single sub inventory.

    Sandeep, Thanks I was able to generate and run the report and it did look only that the specified sub inventory and suggested the reorder qty properly. After running the report under the item number it says "unable to generate requisition" How does the fabrication area get a signal to begin the fabrication process, create a discrete job or create a planne order or something? So far your recommendations have been right on target! Again thankyou.

  • Min/Max  Internal Orders 1 Requisition

    We are running Min/Max planning to replenish stock in an "Emergency Warehouse" organization. The requisition import kicks off internal orders to a replenishment organization. The planner in the replenishment organization would like one order for each Min/Max run. The requisition group-by default in Purchasing parameters is vendor yet we are still seeing one unique requisition for each item thus creating one unique internal sales order per item. Thoughts?

    Stick wrote:
    The requisition group-by default in Purchasing parameters is vendor yet we are still seeing one unique requisition for each item thus creating one unique internal sales order per item. Thoughts?In this case the requisitions will not be grouped by Vendor because the supply source is Inventoy which is creating internal requisitions and not purchasing requisition (source is Supplier/ Vendor).
    It is important to know how you are importing requisitions and what value is specified for Group By parameter during import. The value you setup in Purchasing Options defaults in the Requisition Import request parameter screen, but this can be changed before submission. So it is possible in your case that requisitions are imported using a different group by than what is specified in Purchasing Options.
    From the list of different group by options available (All, Buyer, Category, Item, Supplier) you can probably use 'Location' during requisition import.
    Location: Group requisition lines for each delivery location on a separate requisition.
    But this will not guarantee 100% success because:
    - If you import requisitions with source as INV then those can include requisitions from different INV sources generated from Reorder, Kanban etc having same delivery location. In that case all those requisitions will be grouped under a single header having same location.
    - there may be different users running requisition import manually and some may forget to change this group by parameter (defaulted from purchasing options) while importing Min-Max planned requisitions (again they cannot segregate Min-Max, they can just specify INV as source)
    A better solution would be to use the oracle provided custom hook (po_reqimp_pkg.post_validate_user_extensions) for requisition import to populate the GROUP_CODE column in PO_REQUISITIONS_INTERFACE table. The logic inside the hook should identify the rows in the interface table generated from each run of Min-Max and populate a unique value for all those rows in the GROUP_CODE column. You need a small piece of code to be added inside the hook.
    You can also use REQ_NUMBER_SEGMENT1 column in the interface table to populate an unique value for all rows you want to group together. But in this case the value you specify will become the requisition number if there are no conflicts with the requisition number rule. Both these column, when populated, have precedence over Group by parameter. 1st priority GROUP_CODE (if populated). If GROUP_CODE is not populated then it checks REQ_NUMBER_SEGMENT1. If this is also blank then it uses Group By parameter.
    Thanks
    Supro

  • Min max planning report errors out

    Min max planning is defined at Organization level with the source type as
    supplier.
    Min max report errors out for restock option "yes".
    Following is the error message in the log file
    MSG-00069: Calling INV_MMX_WRAPPER_PVT.exec_min_max from Before Report Trigger
    MSG-00070: INV_MMX_WRAPPER_PVT.exec_min_max returned an error:
    REP-1825: Before Report trigger returned FALSE.
    Have checked all the possible causes
    1)work day calender
    2)Default delivery location
    3)profile option.
    Also applied a patch for this error
    Patch number 4613194
    Still the issue persists

    Hi,
    Please review the following notes:
    Note: 453956.1 - INVISMMX.RDF - Mix-Max Planning Report Completes Successfully But Receive MSG-00069 in Request Log
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=453956.1
    Note: 785813.1 - MSG-00069, MSG-00070 Errors Occurred While Running Min-Max Planning Report
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=785813.1
    Note: 275521.1 - Min Max Rep (INVISMMX) Returns Errors MSG-00069, MSG-00070, REP-1825
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=275521.1
    Note: 280605.1 - 11i INVISMMX- Error Before Report Trigger Returned False Rep-1825
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=280605.1
    Regards,
    Hussein

  • Issue with min/max when vertical axis assigned to multiple series

    Hi.
    I have some simple charting code that is dynamically adding LineSeries to a chart as the user requests them from the gui. As each series is added the vertical axis is assigned to the series and then data is requested and assigned to the dataProvider on the series. This is all working fine however I have found that if I add a sceond series after the first series is displayed and assign the same vertical axis to the second series then the vertical axis seems to set teh min/max based only on the second series added and ignores the first series. It doesnt set to the max of both series and so I get an incorrect max set. If I add a 3rd series the same happens again and the first and second series values seem to be ignored and the axis is set based on the last series to be added.
    Is this expected? Ive tried different variations of invalidating the data/series/styles to force it to refresh but I always get the same. It does refresh but based on only the values in the last added series.
    What is odd is that if I add 2 series at the same time, and assign the axis to both of them and then request data for both and update the dataProvider on both of them the axis is configured correctly based on the max value of both series.
    Any workarounds to make it do the right thing if they are added dynamically? Is this a bug or a known "feature"?
    Any light anyone can shed would be appreciated.
    I need to have the axis assigned to the series directly as I want to be able to use multiple axes. I have found that if I set the verticalaxis on the chart rather than the series then it works fine and sets the min/max based on the combined values of both series.
    The vertical axis is just a simple LinearAxis.
    Any help or suggestions would be appreciated.
    Im using Flex 4.1
    Tks
    Dan

    Adobe Flex LiveDocs seemed to indicate "Using multiple series in the same chart works best when the data points are in a similar range (such as a stock price and its moving average). When the data points are in numerically very different ranges, the chart can be difficult to understand because the data is shown on a single axis. The solution to this problem is to use multiple axes, each with its own range. You can plot each data series on its own axis within the same chart using the techniques described in Using multiple axes" and that link is here:
    http://livedocs.adobe.com/flex/3/html/help.html?content=charts_types_11.html
    I was going to tae a look at this myself, but the code posted here is quite complex, and I suspect incomplete.
    If you refer to that link and still cannot solve the issue, I would try your best to boil down your code to a more simple example still exhibiting the issue, and then post that, along with any data and the simplified main app.
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

  • How to change the Charge Account in Requsitions Generated by Min-Max

    Hi
    I want to change the default account coming in all requsitions which are generated in result of a min-max report.
    please help.
    thanks
    Malik Asif Joyia

    What is your costing method?
    If it is average, the account comes from the organization and not from subinventory and you cannot change the account if the destination is inventory.
    If it is standard, you can have the account from subinventory, but again you cannot change it if the destination is inventory.
    Why do you want to change account if you are receiving into inventory?
    And Min-Max Planning is to replenish the inventory hence I would assume it is not expense destination.
    Thanks
    Nagamohan

  • Find Min,Max?

    Please take a look at my code:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.text.DecimalFormat;
    import java.text.NumberFormat;
    public class StatisticGui extends JApplet
    private JButton push;
    private JButton calc;
    private JTextField tf;
    private JTextArea ta;
    int push1,push2;
    int sum=0,value,sum1=0;
    int min,max,range,again;
    double average;
    double stad,stad1,pass;
    public void init()
    push1=0;
    push=new JButton("Enter Num");
    push.addActionListener(new button1());
    calc=new JButton("Calc Stats");
    calc.addActionListener(new button2());
    tf=new JTextField(10);
    ta=new JTextArea(16,20);
    Container cp=getContentPane();
    cp.setBackground(Color.gray);
    cp.setLayout(new FlowLayout());
    cp.add(tf,BorderLayout.WEST);
    cp.add(push,BorderLayout.CENTER);
    cp.add(calc,BorderLayout.CENTER);
    cp.add(ta,BorderLayout.CENTER);
    setSize (400,300);
    private class button1 implements ActionListener
    public void actionPerformed(ActionEvent event)
    String text=tf.getText();
    value=Integer.parseInt(text);
    min=max=value;
    if(value>=0)
    push1++;
    sum+=value;
    sum1+=Math.pow(value,2);
    if(value>=50)
    push2++;
    max = Math.max(max, value);
    min = Math.min(min, value);
    if(value<0)
    do
    again=JOptionPane.showConfirmDialog(null,"Invalid Number,Please enter again!");
    while(again==JOptionPane.NO_OPTION);
    average=(double)sum/push1;
    pass= (double)push2 / push1;
    stad = sum1/push1 - Math.pow(average,2);
    stad1=Math.sqrt(stad);
    range=max-min;
    private class button2 implements ActionListener
    public void actionPerformed(ActionEvent event)
    DecimalFormat fmt=new DecimalFormat("0.##");
    NumberFormat percent=NumberFormat.getPercentInstance();
    ta.append("\nMean:" + fmt.format(average));
    ta.append("\nStandDev:" + fmt.format(stad1));
    ta.append("\nRange:" +min);
    ta.append("\nPercentPass:" + percent.format(pass));
    not thing wrong with my code but, i can not find the value of min and max, please help!

    String text=tf.getText();
    value=Integer.parseInt(text);
    min=max=value;So your ''max' and 'min' will be set to 'value' ...
    >
    if(value>=0)
    push1++;
    sum+=value;
    sum1+=Math.pow(value,2);
    if(value>=50)
    push2++;
    max = Math.max(max, value);
    min = Math.min(min, value);And now 'min' and 'max' are calcuelated from in effect
    max = Math.max(value, value);
    min = Math.min(value, value);
    because you have previously set 'min' and 'max' to 'value'.
    not thing wrong with my code but, i can not find the
    value of min and max, please help!I agree, there is nothing wrong with your code (if you want 'min' and 'max' to be the last values you supplied)!

  • Reorder Planning vs Min Max planning

    Hi,
    In what business scenarios should we use:
    Reorder planning (ROP)
    Min Max Planning?
    We are implementing INV/PO for a bank where mostly expense items should be used. Also no manufacturing modules are used.
    So which planning will be recommended and why?
    Also, if re-order planning is suggested, share the set ups (with screen shots), as to how to set up & get the Requisition qty.
    Thanks,

    Hi,
    Reorder planning is like two bin system. When one bin is empty, the demand is fulfilled from the second bin while the replenishment order is generated for the first one. Reorder Planning uses Oracle Inventory forecasting information to calculate average demand.
    In min max planning, we maintain 2 levels, minimum and maximum. When the stock goes below the minimum level, the Requisition is created for the Qty =Max level - Qty already in PO/Req - On Hand.
    However, option is available while running min-max to include or not include Qty alrady in PO/Req.
    In min-max, the min-max levels have to be maintained manually and the demand forecast is not taken into account.
    Hope this answers the question.
    Atique

  • Showing advanced statistics for Custom Metrics (min/max/median)

    In my test project I'm able to add custom metrics but I can only view charts with the average value.
    (Tested today on the new Azure Portal https://portal.azure.com)
    I would like to see min/max value, the median or even specify ranges myself.
    Is that possible?
    Friedo

    Currently we have CTI ToolKit Supervisor Desktop which is working just fine, all agents are listed and agent monitoring is enabled. Only call recording option is not available here and this is the major reason why we are trying to find a way to list all agent statistics into the Supervisor Desktop application.
    Is this somehow even possible? Is there any way that we can start the cad services when user logged into the java app through the jtapi? Please share your experience it means alot to me.
    Is CTIOS Supervisor Desktop different than CTI ToolKit Supervisor Desktop?
    Thank you, Ema

  • Want to set Min Max for a material for PD MRP type

    Hi,
    I know Maximum stock level field in Material master MRP 2 view ? but where do i maintain minimum stock level? not procured?
    My client wants to set up his inventory with Min Max levels using MRP PD?
    Thanks and Apprecaites help.
    Regards,
    Siva

    Hi,
    If you want to maintain a Max and Min stock level, Maximum stock is shown straight away, you cannot find the Minimum field directly.
    if you want to use MRP type PD then go for safety stock that will be your minimum stock level
    or else use Re-order point planning, re-order point will be your minimum and Max-level as maximum.
    Thanks
    Satya

  • How to Get the min,max and original values in a single query

    Hi,
    I have a task where in i have to the min , max and the original values of  a data set .
    I have the data like below and i want the target as well as mentioned below
    SOURCE
    DATASOURCE
    INTEGRATIONID
    SLOT_DATE
    SLOT1
    SLOT2
    SLOT3
    SLOT4
    SLOT5
    SLOT6
    SLOT7
    SLOT8
    SLOT9
    SLOT10
    1
    101
    201111
    100
    100
    200
    100
    100
    100
    300
    300
    300
    300
    1
    101
    2011112
    200
    200
    200
    200
    100
    100
    100
    100
    200
    300
    TARGET
    DATASOURCE
    INTEGRATIONID
    SLOT_DATE
    SLOT_VALUE
    SLOT MIN
    SLOT_MAX
    SLOT NUMBER
    1
    101
    201111
    100
    1
    2
    SLOT1
    1
    101
    201111
    100
    1
    2
    SLOT2
    1
    101
    201111
    200
    3
    3
    SLOT3
    1
    101
    201111
    100
    4
    6
    SLOT4
    1
    101
    201111
    100
    4
    6
    SLOT5
    1
    101
    201111
    100
    4
    6
    SLOT6
    1
    101
    201111
    300
    7
    10
    SLOT7
    1
    101
    201111
    300
    7
    10
    SLOT8
    1
    101
    201111
    300
    7
    10
    SLOT9
    1
    101
    201111
    300
    7
    10
    SLOT10
    1
    101
    2011112
    200
    1
    4
    SLOT1
    1
    101
    2011112
    200
    1
    4
    SLOT2
    1
    101
    2011112
    200
    1
    4
    SLOT3
    1
    101
    2011112
    200
    1
    4
    SLOT4
    1
    101
    2011112
    100
    5
    8
    SLOT5
    1
    101
    2011112
    100
    5
    8
    SLOT6
    1
    101
    2011112
    100
    5
    8
    SLOT7
    1
    101
    2011112
    100
    5
    8
    SLOT8
    1
    101
    2011112
    200
    9
    9
    SLOT9
    1
    101
    2011112
    300
    10
    10
    SLOT10
    e
    so basically i would first denormalize the data using the pivot column and then use min and max to get the slot_start and slot_end.
    But then i
    can get the min and max ... but not the orignal values as well.
    Any thoughts would be appreciated.
    Thanks

    If you want to end up with one row per slot per datasource etc, and you want the min and max slots that have the same value as the current slot, then you probably need to be using analytic functions, like:
    with t as
    (SELECT 1 datasource,101    INTEGRATIONID, 201111     slotdate, 100    SLOT1, 100        SLOT2,    200    slot3, 100    slot4, 100    slot5, 100    slot6, 300    slot7, 300    slot8, 300    slot9, 300 slot10 FROM DUAL  union all
    SELECT 1,    101,    2011112,    200,    200,    200,    200,    100,    100,    100,    100,    200,    300 FROM DUAL),
    UNPIVOTED AS
    (SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,1 SLOT,SLOT1 SLOT_VALUE
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,2 SLOT,SLOT2
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,3 SLOT,SLOT3
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,4 SLOT,SLOT4
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,5 SLOT,SLOT5
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,6 SLOT,SLOT6
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,7 SLOT,SLOT7
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,8 SLOT,SLOT8
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,9 SLOT,SLOT9
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,10 SLOT,SLOT10
    FROM T)
    select DATASOURCE,INTEGRATIONID,SLOTDATE,slot,slot_value,min(slot) OVER (partition by datasource,integrationid,slotdate,rn) minslot,
        max(slot) OVER (partition by datasource,integrationid,slotdate,rn) maxslot
    FROM   
      select DATASOURCE,INTEGRATIONID,SLOTDATE,max(rn) over (partition by datasource,integrationid,slotdate order by slot) rn,slot,slot_value
      FROM
        (SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,slot,slot_value,
              case when row_number() over (partition by datasource,integrationid,slotdate order by slot) = 1 or
              lag(slot_value) over (partition by datasource,integrationid,slotdate order by slot) <> slot_value
                  then row_number() over (partition by datasource,integrationid,slotdate order by slot)
                  ELSE null
                  END rn
        from unpivoted
    order by DATASOURCE,INTEGRATIONID,SLOTDATE,slot 

Maybe you are looking for

  • "invalid address"--solution from Apple support that worked for me

    I have been among the throng who have been frustrated for the past couple of days by not being able to get even free Apps and songs from the iTunes store,let alone purchase anything,since all attempts at  downloading/purchasing or even updating Apps

  • Which mobile phones do actually support JavaFX?

    Hello, im very interested in javafx for desktop application development. Since i can deploy my applications for mobile devices aswell, i would like to try that. Recently (yesterday) i bought a new mobile phone, a Nokia E71. I admit that i have absolu

  • Project Scheduling aligment with Actual Date

    Hi, I have Scheduled a Project in Planning Board and my first Activity (Architecture Design) was scheduled to finish at 30.06.2014. While the the next dependant activity was scheduled to start the next day 01.07.2014. Now my first Activity (Architect

  • Firefox is very-very slow at gmail, facebook, etc & shows several errors. How could I remove them?

    Firefox often shows errors like - 'error #101, #102 ' , etc and takes several time to load a page in spite of being a new version.

  • Set cursor position in console

    Hello, I would like to set the position of the cursor in the console (command prompt). Is ther a way to do this ? public void printChar(int x, int y, char ch) {      <set cursor position>(x,y);          System.out.println(ch);     }Thanks