The search for the best way to get the data

Sorry for my bad English.

* 1. Definition * the task
I have the table "tab01":

ID; EVENT_DATE; Item1; Item2... itemN
______________________________
1; 01.01.2009; A; null; ... null
2; 02.01.2009; B; 1; ... null
3; 03.01.2009; null; 2; ... 3
4; 04.01.2009; null; null; ... 4

I need to get the last non-null column values (item1... itemN) on the date chosen (result line).
For example, the result on 03.01.2009 will be:

EVENT_DATE; Item1; Item2... itemN
______________________________
03.01.2009; B; 2 ... 3

* 2.  My decision *.
My decision (it works, but I think that's not good) was:
1. create the package with
(a) methods to get and set the date,
(b) the functions which are the values required;
2. create the view based on the functions of the package.

create or replace package is P_STATE
-The public variable declarations
Trunc (sysdate) default date StateDate;

-Declarations of function and public procedure
procedure SetStateDate (date date);
function GetStateDate return date;

function GetItem1 return tab01.item1%type;
...
function GetItemN return tab01.itemN%type;

end P_STATE;

create or replace package body is P_STATE

procedure SetStateDate (date date) is
Start
StateDate: = Al;
end;

function GetStateDate return date is
Start
Return StateDate;
end;

function tab01.item1%type return GetItem1 is
Result tab01.item1%type;
cursor c1 is select item1 tab01
where item1 is not null and
EVENT_DATE < = StateDate
event_date desc order.
Start
Open c1;
Fetch c1 into result.
Close c1;
Return (result);
end;

...

function GetItemN return tab01.itemN%type is
...
end P_STATE;

create or replace view v_tab01
(date_on, item1,... itemN)
in select
p_state. GetStateDate,
p_state. GetItem1,
...
p_state. GetItemN
Double;

Can you help me to find the best way?

You might if it were a feature in pipeline. Check it out here: [http://www.akadia.com/services/ora_pipe_functions.html]

Tags: Database

Similar Questions

  • I'm looking for the best way and the best way to get a product key for my windows 7 Edition family.

    Hello.  I'm looking for the best way and the best way to get a product key for my windows 7 Edition family.  Thanks Bob

    Original title: product windows keys 7

    The cheapest option is the OEM System Builder for Windows 7 Home Premium license, but has some license restrictions:

    Amazon.com: Windows 7 Home Premium 64 - Bit System Builder...

    The OEM of Windows 7 versions are identical to the versions commercial full license with the following exception:

    -OEM versions don't offer any free direct support from Microsoft technical support Microsoft

    -OEM Licenses are tied to the computer first you install and activate it on

    -OEM versions allow all hardware upgrades except for an upgrade to a different model motherboard

    -OEM versions does not move directly from an older Windows operating system

    What is OEM software? :
    http://support.Microsoft.com/GP/oemsupport_1/en-GB

    Licensing FAQ:
    http://www.Microsoft.com/OEM/en/licensing/sblicensing/pages/licensing_faq.aspx

    OR

    A detail that does not have these restrictions:

    Where can I still get Windows 7?

    Full version - Microsoft Windows 7 Home Premium

    Version upgrade - Microsoft Windows 7 Home Premium Upgrade

    Family Pack: Upgrade of Microsoft Windows 7 Home Premium Family Pack (3 users)

  • What is the best way to get a SVG file generated from After Effects?

    What is the best way to get a SVG file generated from After Effects?

    Is there a script to do this? I use the SVG file directly in my work. I did research online, but find that it has no native support of EI to achieve.

    I found some scripts online, but they convert output Adobe AE to the JSON file. Is there something similar available for the SVG file?

    Thank you

    AE makes pixels not vectors, so it's not possible.

  • What is the best way to get a comp from AE 2014 to Flash Professional CC?

    I created a training video for 10 minutes for a customer who wants this video for an interactive flash presentation now. Now that the XFL export is no longer an option for AE, what is the best way to get all of the animations in Flash without having to rebuild the entire project?

    The XFL format was not much more than what I mean. The files are huge and for a project that I built in AE by using export, time would have been better spent just making the whole project in Flash.

    In addition, if you are only working in Flash, you can create projects that work on mobile devices and use HTML 5 instead of the traditional Flash Player. And in my never humble opinion the SWF format is dead.

  • Size of the individual partitions - the best way to get

    Hello


    Using Oracle 11.2.0.3

    We have a table partitioned by date range.

    We want to create separate storage for each partition.

    What is the best way to get the size of each partition (MB/GB, etc.).

    Thank you
    select segment_name, partition_name, bytes/1024
    from user_segments
    where segment_name = '&table_name';
    

    Note: The nom_segment in WHERE USER_SEGMENTS is the name of the table. The name of the Partition appears in the column Where USER_SEGMENTS nom_partition.

    Hemant K Collette

  • Best way to get the content of the 1 page in a lot?

    Hi everyone - I just wanted to check with experts on the best way to get information from 1 html page.  For example, I have a page that shows every 1 '' Ribbons that we have in stock to be used on sandals, belts, bags, etc. dog collars;  (http://elizab.com/eb-1-inchribbons.html) I can do an iframe to pull this html page 1 to all others?  What is the best way to do it?

    Basically I just have to update only one page html (tapes 1 ") and then it is good on all other pages, instead of having me to go through and to update every page that uses ribbons 1" :-)

    I'm not sure what is always taken in charge and what is not recommended on this!

    Thank you-

    Use an SSI. Server Side includes. It's better than an iframe. Google for server-side includes.

    Usually, I use php for inclusions on server side, but your server must support php. If not, you can use .shtml server-side includes.

    You need only to update and download only one file when you want to make changes. So on what page/s you have included the SSI these pages updated as well.

    Although I am a little confused because your field of design takes a page in its entirety. How do you intend to include all of the information on other pages without doubt that contain other information as well?

    I guess that if you only have a small area in which to display all the different designs on your pages, then an iframe is probably the best solution for your because you can define its dimensions.

    Personally I would get really "upset" if I have to keep scrolling left and right and top and bottom, then maybe if you go the route iframe you can arrange at least all the vertical stripes so we don't have to scroll up and down or break designs down into smaller categories to its more manageable for the end user.

  • What is the best way to get rid of computer viruses?

    Original title: virus windows support system.

    the best way to get rid of this thing?

    Hi DavidStirling7777,

    (a) I recommend you run a virus scan online from the link given below and check if it helps.

    http://OneCare.live.com/site/en-NZ/default.htm?mkt=en-NZ

    Also, make sure that you have the latest update of the software antivirus installed on your computer, so that it works correctly.

    (b) If you don't have any software antivirus installed, you can download & install Microsoft Security Essentials on your machine.

    Hope the helps of information.

    Please post back and we do know.

  • What is the best way to get certificate of secure Channel, including CCNA, expensive etc. without training?

    Currently, what is the best way to get certificate of secure Channel, including CCNA, etc.?

    In the past, there is a way to get VCP using CCNA without expensive training

    Path 2 on this page: VCP6-NV Certification

    There was already an expiration date on the possibility of using a Cisco certification have the implemented training obligation, but the expiration date has been removed.

  • What is the best way to get Adobe Illustrator?

    What is the best way to get Adobe Illustrator?

    [Moved from Illustrator to cloud... MOD]

    Cloud https://creative.adobe.com/plans by subscription Plans, if you always have the latest updates

    Or Creative Suite 6 if you want to pay only once and can use a software 3 year and liked that receive more updates

  • What is the best way to get a Table name in Oracle Applications: 12.1.1 (web)

    Hello friends...


    I need your help my friends...


    We are currently working on Oracle Applications: 12.1.1

    I would like to know the best way to get the name of the Table to form based on a Web...


    Concerning

    Yas.

    Hello

    Please see this thread and documents referenced in it.

    RECORD HISTORY (or) COLUMNS in R12?
    RECORD HISTORY (or) COLUMNS in R12?

    Kind regards
    Hussein

  • What is the best way to get several updates fail to install

    I have 32 updates that have failed to install.  How is the best way to go back and get to install them?

    You receive errors related to updates?

    1. Open Windows Update by clicking the Start button, all programs and then click Windows Update.
    2. In the left pane, click view update history.
      http://Windows.Microsoft.com/en-us/Windows-Vista/see-which-Windows-updates-are-installed
    3. Find an update for Windows that has failed to install, and then double-click the update to view more information.
      Updates that have failed to install will display failed under status, next to the name of update.
    4. In the Windows Update dialog box, next to the details of the error, review the error code for the update has failed.
    5. Follow the links in the Windows Update dialog box under more information or help and Support to resolve the problem, then try to reinstall updates by using Windows Update in Control Panel or by mail with the error code and maybe someone may be able to help others.

    Windows update General troubleshooting

    Suggestions:

    How to reset the Windows Update settings?
    http://support.Microsoft.com/kb/971058

    Diagnose and automatically fix common problems with Windows Update
    http://support.Microsoft.com/mats/windows_update/

    Cannot install updates in Windows Vista, Windows 7, Windows Server 2008 and Windows Server 2008 R2
    http://support.Microsoft.com/kb/2509997

    Or try to install the updates in a clean boot state, and run Windows Update: http://support.microsoft.com/kb/929135

  • What is the best/best way to get just Photoshop and first applications?

    Hello Adobe community.

    I'm curious the best about the ideal way to get just Photoshop and first. I have currently the library full of Adobe applications, and I noticed that I don't use the majority of the applications outside of these two. My subscription of the year ends in November (thank you for Black Friday deals). I want an idea of some of the things that I can do to save money and get the best value for both applications as the price of subscriptions is a little strange.

    After watching the price of subscriptions and their descriptions, is logical that the best option I have is to get the Plan of Single-App creative cloud for first ($19.99 per month) and also opt it for the Photoshop & Lightroom Plan ($ 9.99 per month)?

    The price, I was looking at: plans membership: pricing and subscriptions | Adobe Creative Cloud

    I appreciate any help I can get. See you soon!

    If you want these two programs (Lightroom does bundle special photographer, but there is of course no need to install or use) then what you described is the only way

    Don't forget to cancel your existing subscription before the end of your current period

    Cancel see answer #1 in https://forums.adobe.com/thread/2023066 - includes a link to Chat from Monday to Friday

    -or directly at this link https://helpx.adobe.com/creative-cloud/help/cancel-membership.html

  • What is the best way to get a customized version # from an ESXi host?

    Each quarter, we generate a sequence of updates (including patches and security scripts) which are performed manually on our 5.0 ESXi hosts. I don't have an internet connection and so I have to do it this way.  I would like to be able to identify the last quarterly update that has been run on the vCenter servers and/or Client VI.

    Right now, I think adding the quarter, example 1 Q 13 on the DCUI message, then help PowerCLI, vCenter to retrieve the message DCUI, crawled and paste the quarter in the field host Annotations on vCenter.

    Kind of ugly, but I cannot find a cool way to get data like this outside of the host.  I don't want to rely on my user manually set to nothing, for example the field of Annotations on vCenter that is also subject to errors.

    I really want something that can also be seen on the VI Client, too, as the annotations are only on vCenter.

    I have ideas about the best approach to tackle this problem.

    Thank you

    Not sure if this is the best way, but that's what I ended up doing.   It feels like there should be a better way.

    I've updated my quarterly script to add the version number at the bottom of the file, / etc/vmware/welcome, whenever it is run on an ESXi host (e.g. myScript version: v1.0 Date: 04June2013).  This file appears under the banner DCUI.

    Then, I wrote a script powerCLI to roughly the following:

    foreach ($vmHostObj in Get-VMHost-name *) {}

    # Get the full message of DCUI in/etc/vmware/welcome

    $msgObj = echo $vmHostObj | Get-VMHostAdvancedConfiguration-name Annotations.WelcomeMessage

    # Convert a hash of a string table welcome message

    $msgTxt = echo $msgObj.Item ("Annotations.WelcomeMessage")

    # find the clue for the string containing my script information, which is at the end of the welcome message.

    # This is important because the substring below function will extract everything after the index.

    $idx = $msgTxt.IndexOf ("version myScript :")

    If ($idx - gt 0) {}

    $label = $msgTxt.Substring ($idx)

    Set Annotation - remarks on the entity $vmHostObj - CustomAttribute - value $label

    }

    }

    This replaces the Notes field for each host, one day I can go back and make it more user-friendly where it replaces the version leaving the rest of the field notes intact.

  • Best way to get the EBITDA, calculated or hierarchy?

    I have a client who has a hierarchy of multi-level natural account that includes the core accounts and leads all the way to its Net income. However, they would like an account called EBITDA to be able to reference using smartview rules.

    What do you recommend is the best way to do this? I was looking for to use the natural hierarchy counts, but all their groups the way they want them already, I need to be able to have some sort of alternative account hierarchy (similar to a hierarchy of entities replacement), but I don't know if this is possible.

    I could use an account calculated, but it would be nice to be able to get the EBE without having to run a consolidation every time a change for companies of basic number, but it might be the easiest way to do it.

    All advice is appreciated!

    Yes, quite possible to have a flow of the basic account upwards in any number of parents. You only download the account once. You would be reconsolidate as many times as necessary.

    Hierarchy1
       - Acct_A
       - Acct_B
    
    Hierarchy 2
       - Acct_A
       - Acct_C
    

    You load Acct_A once and consolidate the hierarchy 1 and 2 to get the totals you want. If you want to slightly reduce the manual steps, you could give the two hierarchies shared parent so you can kick off a consolidation at the top.

    Hierarchy3
       -Hierarchy1
          - Acct_A
          - Acct_B
       -Hierarchy 2
          - Acct_A
          - Acct_C
    
  • Best way to retrieve the object named?  best way to get a named object?

    Inside of my loop, where I get my XML objects I added a code to draw and add the mask:

    var myMask:MovieClip = new MovieClip();

    / / width height x color settings play etc etc.

    myMask.name = '-NAME' + i; set the NAME

    myContainer.addChild (myMask);

    myContainer.mask = myMask;

    the mask looks good on the scene.

    now since I the name I want to use for another purpose such as move

    now I want to call real myMask

    I get my number 'num' of the other function, which works very well

    function applyMask(num:int):void {}

    need to call myMask("NAME-"+num)

    }

    I tried myContainer.getChildByName

    have you tried: var hide: myContainer = getChildByName ("NAME-" + String (num)) as myContainer;

    I traced to the options I can think of me, but all the results found no property.

    hmm I know that I do not use the right method of appeal? So what is the best way to call my named object?

    I think that the use...

    var theMask:MovieClip = myContainer.getChildByName ("NAME-" + String (num));

    would work, where you can use theMask to target.  Another approach to this would be to store each mask in a table so that you can just use the table to target the...

    var maskArray:Array = new Array();

    var myMask:MovieClip = new MovieClip();

    maskArray [i] = myMask;

    myContainer.addChild (myMask);

    myContainer.mask = myMask;

    Note: When first name you the object you should convert I have a string as well... myMask.name = "- NAME" + String (i); ".  at least I have is already a string

Maybe you are looking for

  • Not able to install apple tv 4th gen as home hub

    Updated to iOS 10 yesterday. I was looking for installation up to the ATV 4th Gen as a home hub, but it is not allowing me. It works very well to set up the ipad pro as the hub, but not the ATV, which is running TVos 10, and Yes 2 verification step i

  • Motorola earbuds (Nexus 6 use)

    Normally I do not headphones I do not like something in my ear other than a Q-Tip. And above all to start, Yes... I am perfectly aware that I'm not supposed to use something bigger than my pinky finger in my ear. I just had a conversation with my doc

  • blur the bios screen

    my system recently crashed... due to some files missing system... something to take to the registry at startup... then one day when installing firefox system crashed... now I am not able to read the parameter (to install the operating system) as get

  • (KEYBOARD ERROR) Windows cannot load the driver for this hardware device because a previous instance of the device driver is still in memory. (Code 38)

    (KEYBOARD ERROR) Windows cannot load the driver for this hardware device because a previous instance of the device driver is still in memory. (Code 38) Hello I don't know how it happened. I tried unistalling the software but have the same problem whe

  • Board graph export SVG problem

    Hello. I have problems to export to SVG work plan.I have a very large vector of the United Kingdom's Ordnance Survey map, but I'm only interested in the use of a small part of it for display on the web.I've hidden the area I wanted and created a plan