Issue of application of categorical/historian-type database

Two years ago I used a lot of PL/SQL and my brain can't seem to dig up of how to do it in PL/SQL database.

Given a data table which looks like the following, what is the best way to query the table to get a result set that has a single record for each ASSET_ID representing only the last entry in the table for this value ASSET_ID?

ID, ASSET_ID, INSERTED, ATTRIBUTE1...
1, a, 09/09/08 12:00, bla...
2, B, 09/09/08 12:01, bla...
3, C, 09/09/08 12:02, bla...
4, a, 09/09/08 12:03, bla...
5, B, 09/09/08 12:04, bla...
6, D, 09/09/08 12:05, bla...
7 d, 09/09/08 12:06, bla...
8 B, 09-09-08 12:07, bla...
9, a, 09-09-08 12:08, bla...
10 c, 09-09-08 12:09, bla...

Given this picture, my recordset has:

ID, ASSET_ID, INSERTED, ATTRIBUTE1...
7 d, 09/09/08 12:06, bla...
8 B, 09-09-08 12:07, bla...
9, a, 09-09-08 12:08, bla...
10 c, 09-09-08 12:09, bla...

I seem to remember that there is a function (MODE? MODAL? CASE?) which can be integrated into one application to achieve this in a way that worked well and does not need an infinite amount of UNIONS and without compensation from the MDGS, but I can't seem to dig up. Any ideas?

Thank you!

Chris
select max (id)
     , asset_id
  from x
 group by asset_id

Tags: Database

Similar Questions

  • Can I have a form only for all instances of the application of the same type? (OIM 11 G 2)

    Hi all

    I have dozens of instances of the application of the same type (DBUM connector) so I was used to specify the same shape and the same user object while creating instances of the application.

    Is it safe? Or is it better to create a new/different shape for each instance of the application?

    Many thanks and best regards.

    Even if this is the answer, I would say that Yes, always use the same form name in the instance of the application. Recently came across the issue in R2BP10 and R2PS1BP02, where there are several child forms an instance of the application if different names are used for the name of the form in the instance of the application, then the form does not display data in the user interface.

    -Marie

  • How to refresh Hyperion application after you migrate Essbase database?

    I want to copy my planning application from one machine to another (with exactly the same operational systems)
    I did it by database Archive

    1. on the original machine
    EE: Application-> database database->(Right click menu)

    2 copied the file archived on the target machine

    3 on the target computer
    create THE SAME application in hyperion planning and done as follows
    EAS:application-> database database->(Right click menu) Resrore

    @Refresh succeeded to @.
    And changed the outline in EAS

    But nothing changes in the planning application. How to refresh the planning scheme?
    Thanks in advance

    John is correct, I totally missed the detail that you archived of essbase database and makes the automatic assumption that you had saved/archived planning of the SQL database.

    The "schema" in a planning application is 'stored' in planning using the SQL repository. The Essbase outline is the analytic representation of this sketch of planning.

    To really migrate a planning application, in a way or another, you must copy the repository SQL planning in the application you are setting up, and then refresh to Essbase so going this route.

    Sorry for the confusion

    Kind regards
    Robb Salzmann

    SSO

    FWIW, here is a list of the major steps that I used in the past to migrate 9.3 - 11 Planning (manually):

  • Backup Application Essbase, perform the export level 0
  • Backup database to Application Planning
  • An inventory of safety, dimensions, performance parameters, forms and States
  • 11, create the new application with the same Types of Plan, same currency and set of business rules
  • Stop planning in the 11 database object, move, to re-create the database object and import 9.3 database
  • Apply upgrade SQL scripts
  • ALTER table to reflect the version and Shared/Server location
  • Start the Application and validate the inventory
  • Import level 0 in Essbase
  • Test

  • Startup applications with the mime type or file-name extension

    Hello

    is it possible to start the corresponding application for a mime-type file or a file extention? I have for example a JPEG image or PDF file stored on the SD card and wants to open by calling the assosiated on the BlackBerry Smartphone application.

    Lars

    Ok. I've got so far. But how do I know which deals with the application for example .jpg or .pdf? I found the registry as the place of registry types mime and file-extensions for a particular application, but could find no way to recover this information with other applications from there. Any idea?

    Lars

  • application could not load the database

    I have a RoboHelp 9 project that I left open on my computer at night and microsoft updates ran causing my computer to restart.  When I try to open my project in RoboHelp 9, I get the following error:

    Open a project has been cancelled or the application could not load the database for 'C:\CODE\HELP\HELP. CPD»

    How can I fix the CPD file without restarting?

    Hello

    Just delete the CPD and re - open the project. When RoboHelp sees is missing, it will cook in the oven until a new use and then all should be well.

    See you soon... Rick

  • The application requires more privileges in database you currently have

    Hello
    in 10g R2, no one can connect to the network DB control (not sys, no sysman or system). We get the following:

    The application requires more privileges to database that you got currently. Click Help for more version specific information.

    We are sure to password.
    I saw and applied notes metalink 330682.1 and 363065.1 who said:

    grant SELECT_CATALOG_ROLE to the user;

    grant select any dictionary for < user >;

    but no result.

    Any help?
    Thank you.

    1. what operating system.
    2. what version of Oracle (10 g 2 is a marketing label not a version number... provide all decimals)
    3. What are the values of the environment variables ORACLE_HOME and ORACLE_SID?

  • Issue of applications, workspaces and users...

    Damn and blast: wrong forum.
    I'll be better when I wake up...

    My apologies for the gaffe.

    Mungo

    Published by: MungoHenning on November 3, 2010 03:22

    Mungo,
    There is a forum dedicated to APEX:
    Oracle Application Express (APEX)

    Better to post your question there as in this forum database and the migration of the Application, we cover migration issues of foreign to Oracle databases

  • Downloading a file, application/octet-stream mime type, I always get the dialog box "do you want to save to save this file?" Cancel or save.

    A number of us use a private site where run us an application in offline mode. The application offers a download button so that we can take a snapshot of our progress in offline mode, a sort of backup. When we'll be back online you can either download the information from the application or we can load the backup files.

    The problem is that every time we hit the download button, we always get the additional dialog box asking if we want to save or cancel the download of the file. It may sound a little silly, but we really do not want to have to move the mouse to the new dialog box and click on the "Save" button.

    The mime type of the file is application/octet-stream, there is no file extension.

    Is there a way to change the configuration of Firefox so that this dialog box does not appear?

    Thank you.

    My apologies, but I deleted all system information collected automatically because I am not in a position to submit this application for machines where the problem occurs.

    These system are:
    14:04.3 Ubuntu LTS
    Firefox 40.0.3

    Content of type "application/octet-stream" will cause always Firefox show the 'open with' Download dialogue.
    To avoid this download, you must configure the server to send another type of content and possibly change the file extension.

  • Can't open associated application of unknown file type

    I'm trying to download or open a file type of .psdata for which I have an installed application but when I click on the FF link simply opens the file that displays a page of binary data of course.

    FF used to open this file correctly, but now it does not.

    Thank you

    With what type of content is the server send the file?

    • Tools > Page Info > general

    If Firefox displays the file in a tab, then it is likely that the server sends the file as text/plain.

  • Chrashed Application LabView sometimes - OPC, DSC, database

    Hello

    I have a problem with LabView. IAM using 8.6 with DSC. I have an OPC Server with 400 Variables to read a 40 to write

    My first try was the connection to the server via Datasocket. The reading 400 variables was very fast, but writing 40 variables was very slow. Each write cycle takes 10-30 s. I need now about 300-500 ms. a second is also ok, but no more.

    After that, I created a mutual FUND I/O-Server in the library. I have create 10 variables in the same Libarary. I connect variables on the EVS to the IO server it works very well. Fast read and write. But if I use more than 6-8 variables to write shared variables that LabVIEW crashed or do nothing.

    So I used the right click on the digital control - data binding - Data Binding selection-> socket Data. On the server that I am looking for the variable on the opc server. (Example pathpc: / / localhost/BACHMANN.) OPCStandardServer.2/DeltaPOx.DeltaPOx_DAQ. DeltaPOx.DELTAPOX__HostVorg_cont_MFCVorg_C2_02_soll). It works very well. I finished the project a make an exe file. Question: the communication going on AES or directly on the opc Server?

    Now the problem:

    (1) sometimes without any reason the connection with the SPS crashed. I show the LEDs of the PSP on the buttons a numerical indicators a green led switches to red. With customer Softwarefrom the producer of SPS, the communication works very well. If the SPS an OPC server doesn't always work. Even a reboot of the LabView program do not work. I have to restart the pc. After the reboot, it works well.

    (2) once the database crashed. I use the Hyper trend to show trends in the variables. Sometimes if I open the tab with Windows Hyper trend data displays the Date of January 1, 1904. That I have to restart the database. The last time, it doesn't work and I had to rebuild the Application host.

    (3) I get an error message "Runtime Error... Tagsrv.exe. I read that this message comes only if something tried to close the database. I have the error at startup of windows messages. Sometimes, after a few minutes or hours, or days. I install LabView 2009 now. I hope that the failure is complete.

    I guess that something with the database or the OPC server is incorrect. Maybe someone has an idea.

    Sorry for this stupid English :-)

    thx for the help

    Martin

    Thank you very much!!!

    It works for 5 days without crashing. I hope that this always works, even in a year :-)

    THX Martin

  • Application crashes on execution of database queries.

    Hello

    I work on device BlackBerry Curve 9220, after completing the select query, my fair application crashes and closes.

    I have not found no exception detected in the catch block, while I could see the following message on the console.

    can someone tell me or guide me how to deal with this error. As I understand it, it's DB connections must be made from other threads and not the UI thread main which is exactly what I'm doing in my code and yet app crashes which worked like a charm all these days.

    Error message on the console is...

    Olympia: Waited longer than 6000 milliseconds waiting for event for response to the type of event

    Any kind of help is appreciated

    OK, this seems to be java of BB code, I'll ask a mod to move the post to the appropriate forum.

    Maybe you have a misconception to the invokelater subject, it is used to perform tricks ON the thread of the event.
    For more information, see
    https://supportforums.BlackBerry.com/T5/Java-development/what-is-the-event-thread/Ta-p/446865

    to run something async you could create a new Thread and call start() on it.

  • Another application on the ebs r12 database

    Hello

    I would like to know if I can create another user on the ebs r12 database.

    That's another application (not ebs).

    What are the risks?

    Is there an id doc on this subject?

    Thank you.


    It may not be available for that Oracle doc. But as a principle, why the unrelated database schema is created in the EBS database. This will add more load on the database of EBS, administrative effort. Let's say that your EBS database is down for maintenance, while the other application accessing this scheme does not require maintenance always, it will be down.

    concerning

    Pravin

  • HPL 11.1.2.3: How to create application of EPMA planning with database ASO.

    Hi all.

    I can't find any option for the creation of ASO database for my application of EPMA new (or existing). This is the option persist? Or only the "Classic" Application work with this new feature?

    ER

    Classic only, from the 11.1.2.3 planning readme:

    "You cannot work with contours ASO in Oracle Hyperion EPM architect."

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • Java application to connect to the database

    I have more than 3 database with different products (DB2, Oracle, Sql Server), I need unique application that runs in the reading of the local computer of these database which is I set up columns.
    for example.
    In oracle have            x information
    In DB2 have               y information
    In Sql server have        z information
    When I run the application should request each database access password and user name, schema and column name should be exposed in the application. These requirements can be done in Jdeveloper?

    Please can someone suggest to me,.
    Thax
    RAM

    Hi Ram,

    Yes its running in jdeveloper/weblogic server.
    Ofcourese, it will run without application server.
    for example
    You can fund Java desktop Application (ADF) in jdeveloper if you want to create a desktop application

    Thank you best regards &,.
    Vikas

  • Oracle Application Express relaxing select the database table?

    Hi all

    I use Oracle Application Express. I created a page and I want to fill the 2 (txtname, txtaddress1) on my page when the user provides no Id on another field (txtID).

    Can someone help me please how to do this?

    Thank you very much
    Gunajee.

    Hello

    There are 3 ways to meet your needs

    1 goto your article > Source > Source: always... > Type of Source: SQL returns a single value > Source value or expression: select column_value from table_name where pk =: pk_item

    2 create a calculation
    The rendering of Page Goto > calculation.

    Create calculations > on this Page >. . follow the instructions in the wizard and set required values.

    3. create a dynamic action (a better and simpler)
    The rendering of Page Goto > Dynamic Actions.

    create dynamic Actions > on item1 > when changed > value > sql statement > write the sql query > done point > required element (item2)

    fire on loading the page: uncheck

    Note: For 1 and 2, you need to send the page.

    You can use {'code'} {'code'} to keep your code. (remove the apostrophes and use)

    Kind regards
    Little Foot

Maybe you are looking for

  • Realtek HD and XP SP3

    Since the upgrade to SP3 on my HP a1150y (it's old but it works) I get the following when connecting error message: "Realtek HD Audio Control Panel has encountered a problem and needs to close." The following technical details are provided: "AppName:

  • Satellite M115: Limited connectivity WLan

    I have a Toshiba Satellite M115 for the school and for the last two weeks, it works wonderfully, but earlier this week all of a sudden it connects not to the network wireless of the school (which is free). All that he was to tell me who can sense the

  • Save the password on the Client VPN with PIX

    I'm running a PIX 515 6.1 (2) configured for a small number of VPN clients. I want VPN clients to automatically remember the password of login for users do not have to enter it each time (we have an application which periodically autoconnexions). Whi

  • Problem with 3D rendering of the element

    I do the composition with buildings on the background using 3-d element. Here's a snippet in After Effects:But when I made this composition, I have this:I tried to solve it by myself and it has searched the Internet, but couldn't find anything. I hop

  • How can you align the image in a slide show widget?

    I add a slideshow widget. His images are "fill the frame proportionally. I didn't want the image to resize, so I made 2500 px wide because that is what I want it to fit across the screen. There is no way to align the image once in the widget to the r