Application of pivot, but not really

Hi, my data looks like this:

TIME_STAMP DURATION_IN_SECONDS NŒUD
1 16:00 2.31
2 16:01 1.47
3 16:02 1.88
1 16:05 1.89
2 16:06 3.64
3 16:07 3.53
1 16:10 3.79
2 16:11 1.90
3 16:12 3.10
1 16:15 4.37
2 16:16 3.96
3 16:17 1.06
1 16:20 1.02
2 16:21 4.57
3 16:22 1.94
1 16:25 1.54
2 16:26 2.00
3 16:27 3.44
1 16:30 1.54
2 16:31 1.57
3 16:32 1.86

I want to get:
TIME_BLOCK NODE_1_DURATION NODE_2_DURATION NODE_3_DURATION
16:00 2.31 1.47 1.88
16:05 1.89 3.64 3.53
16:10 3.79 1.90 3,10
16:15 4.37 3.96 1.06
16:20 1.02 4,57 1.94
16:25 1.54 2,00 3.44
16:30 1.54 1.57 1.86

In this case, the alterNative solution of Pivot is useful as pivot ;-)

with t(NODE,TIME_STAMP,DURATION_IN_SECONDS) as(
select 1,'16:00:00','2.31' from dual union
select 2,'16:01:00','1.47' from dual union
select 3,'16:02:00','1.88' from dual union
select 1,'16:05:00','1.89' from dual union
select 2,'16:06:00','3.64' from dual union
select 3,'16:07:00','3.53' from dual union
select 1,'16:10:00','3.79' from dual union
select 2,'16:11:00','1.90' from dual union
select 3,'16:12:00','3.10' from dual union
select 1,'16:15:00','4.37' from dual union
select 2,'16:16:00','3.96' from dual union
select 3,'16:17:00','1.06' from dual union
select 1,'16:20:00','1.02' from dual union
select 2,'16:21:00','4.57' from dual union
select 3,'16:22:00','1.94' from dual union
select 1,'16:25:00','1.54' from dual union
select 2,'16:26:00','2.00' from dual union
select 3,'16:27:00','3.44' from dual union
select 1,'16:30:00','1.54' from dual union
select 2,'16:31:00','1.57' from dual union
select 3,'16:32:00','1.86' from dual)
select min(TIME_STAMP) as TIME_BLOCK,
max(decode(NODE,1,DURATION_IN_SECONDS)) as NODE_1_DURATION,
max(decode(NODE,2,DURATION_IN_SECONDS)) as NODE_2_DURATION,
max(decode(NODE,3,DURATION_IN_SECONDS)) as NODE_3_DURATION
from (select NODE,TIME_STAMP,DURATION_IN_SECONDS,
      Row_Number() over(partition by NODE
                        order by TIME_STAMP) as rn
        from t)
group by rn
order by rn;

TIME_BLO  NODE  NODE  NODE
--------  ----  ----  ----
16:00:00  2.31  1.47  1.88
16:05:00  1.89  3.64  3.53
16:10:00  3.79  1.90  3.10
16:15:00  4.37  3.96  1.06
16:20:00  1.02  4.57  1.94
16:25:00  1.54  2.00  3.44
16:30:00  1.54  1.57  1.86

Tags: Database

Similar Questions

  • The touchpad scrolling works on all applications (including IE) but not in Firefox - Win 10

    My touchpad scroll does not work in Firefox. It works great with IE and other applications (Windows 10).

    If it was a driver issue - I think that this would not work in all applications, but it works fine everywhere (except Firefox)

    I can operate for a short period, if I uninstall the Touchpad (in Device Manager), restart, re - installed.

    Again, hard to believe it would be a driver problem - works fine in all applications, except Firefox...

    He stares at me

    http://dellwindowsreinstallationguide.com/Dell-touchpad-drivers/

  • Why open links in Firefox causes a "Server error in ' / ' Application Runtime Error" but not in "Internet Explorer"?

    When I click on certain links in an e-mail message (and Firefox is the default browser), I get the following error:

    In the Application Server error ' / '.

    Runtime error
    Description: An exception occurred while processing your request. In addition, another exception occurred during the execution of the custom for the first exception error page. The request was interrupted.

    If, however, I follow the same links (and Internet Explorer is the default browser), I get no error and the good content of the link is displayed.

    What is causing this error? As I prefer Firefox, how can this problem be fixed?

    Windows 7 Service Pack 1 operating system
    Firefox Version 32.0.1
    Internet Explorer Version 11.0.9600.17280

    Thank you for your help.

    First

    When you look at the address in the address bar, it seems to coincide with the e-mail?

    It seems that Firefox has sent the server something it was not expected. Sometimes this can be caused by obsolete or damaged cookies - assuming that you have visited the site before. It could also result in changes of standard information sent to servers such as the string 'user agent' that specifies your version of browser and operating system.

    To clear cookies for a site, while displaying a page on the site, either:

    • Right click and select View Page Info > Security > "View Cookies".
    • (menu bar) Tools > Page Info > Security > 'view the Cookies '.

    Then try to reload the page. Who help me?

  • The file name looks like has changed, but not really

    I have several video files, I created and then changed the name of. The name seems to change in the finder, BUT when I open in VLC or drop it into itunes it shows the original name.

    There must be another place, the name is stored (in the file?)

    Any help?

    There is a title within the video file.  When creating, this is the same as the name of the file, but change the name of the file will not change anything inside the file.

    To change the title, right click on the file in iTunes, select "Get Info", change the title in the Details tab, and then click OK.

  • Bug? Why creative cloud says I can upgrade to Acrobat DC, but not really?

    Creative cloud says I can upgrade to Acrobat DC.

    When I select update, I saw the following message:

    So, I select update again and receive the following:

    I followed the instructions and uninstalled my desktop version of Acrobat Pro XI.

    After uninstalling and rebooting, creative cloud no longer displays DC Acrobat as an update.

    He says that I can 'Try' Acrobat DC, then pay for it to keep. Seriously?

    It seems that Adobe attracted me with Acrobat DC for forcing me to uninstall the current version of office for a free trial of Acrobat DC. Please tell me it is a bug or I missed something here.

    I reinstalled Acrobat Pro XI and now Creative Cloud says I can upgrade to Acrobat DC even once.

    Can anyone tell me and others on the forum if this is a bug?

    you have a subscription that includes acrobat?

    If this isn't the case, you will need to reinstall your acrobat xi.

    Available downloadable Setup files:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

    window using the Lightroom 3 link to see these "important Instructions".

  • creating a pop-up window (but not really a pop up window)

    I would like to make a link that opens a new page on the site current, smaller, like a pop-up window. I know how to create a smaller page, but how do I configure the hyperlink to this page on top of the existing page?

    Hello

    Here you will find a similar description:

    https://forums.Adobe.com/message/6049523

    Useful links:

    https://www.YouTube.com/watch?v=Ufsz0V_CRLw

    http://www.Muse-themes.com/blogs/News/7166988-creating-small-pop-up-Windows-in-Adobe-Muse

    Thank you

    Sanjit

  • Firefox is almost closed, but not really. Error message: close all tabs, but none are open. I have to restart PC every time.

    I noticed two other users have the same problem. What about the?
    Thank you

    Hello

    The precise way to close Firefox via the Firefox button on the upper left and exits. Otherwise file (Alt + F) > Exit. Firefox may take a few seconds to leave according to privacy settings, restore session etc. Active extensions and plugins can still delay the release of a few seconds.

  • I can't allow an application through firewall - and security settings have been changed, but not by me!

    I can't download anything Mozilla Firefox - Finally I worked on that I need to change the settings of the firewall, and when I went in firewall, I found that all downloads of Mozilla entrants are blocked on the firewall. This was not the case yesterday and I'm not sure what the computer has done to cause this. I tried to click on the button for me to allow through the firewall, but it doesn't work - and I am the administrator and the only user of this computer. I can not get internet explore or google chrome to work so I'm stuck. I tried troubleshooting but nothing that requires an application to download does not work. It comes back with an error telling me my internet security settings do not allow me to download - but then it only allows me to change the security settings. Need help please, I really need my computer!

    Hello

    Thanks for posting your concern here at Microsoft Community.

    If you have changed some Windows Firewall settings and you want to cancel your changes, you can restore the firewall settings to the original (default) settings.

    1. Open Windows Firewall by pressing the Windows key + X , and then clicking Control Panel. In the search box, type firewall, and then click Windows Firewall.
    2. In the left pane, click restore defaults. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    3. In the dialog box that appears, click restore defaults. At the confirmation prompt, click Yes.

    http://Windows.Microsoft.com/en-us/Windows-8/Windows-Firewall-from-start-to-finish

    If the problem persists, I suggest you to create another user account and check.

    Create a user account

    http://Windows.Microsoft.com/en-in/Windows-8/create-user-account

    Hope this information helps. If you need help with Windows, let us know and will be happy to help you.

  • Why my Acer R7 touch keyboard appears in Chrome and IE, but not other applications?

    I am running Windows 8.1, with the latest drivers and updates. My touchpad works when using Chrome and IE, but not other applications. He has never had this problem until today.

    I guess I posted the solution somewhere else, because it was originally a lot of questions, but here is my post of this thread as well:

    "ok, strangest thing ever." Understand the question. The touchpad has become corrupted. I used the touchscreen keyboard Troubleshooter to solve another problem and voila! Rotation of restored Ezel. I think that Chrome is was as tactile keyboard operations from time to time, not sure. But I know that I fixed my problem. No expenditure necessary.

    A link to download the touch keyboard Troubleshooter is to prevent it from this page:
    http://Windows.Microsoft.com/en-us/Windows-8/using-touch-keyboard Hope this helps someone else.

  • I get a message saying "you have exceeded your profile storage space. Yet all the files listed th are actually my docs and application data. How to delete my profile, but not from my pc? increase the max profile size

    I get a message saying "you have exceeded your profile storage space. Yet all the files listed th are actually my docs and application data. How to delete my profile, but not from my pc? increase the max profile size

    1. the first thing to do is to make sure that the computer is completely virus/malware-free. Googling around this error produced quite a few links where the posters were or had been infected with Spyware Protect 2009 rogue.

    http://www.elephantboycomputers.com/page2.html#Removing_Malware

    Once the scanning is complete (do not skip the preparatory stages no more), if the problem persists:

    2. double-click on my computer, right-click the icon for your hard drive, click left to get its properties. If you see options to set Quota management make sure that they are disabled.

    3. in the case - BUT ONLY AFTER YOU ARE sure THAT THE MACHINE IS MALWARE/VIRUS-FREE - copy the lines between asterisks (not including the asterisks) below and paste it into Notepad. Save as undopolicy.reg somewhere, you will find. And then double-click the .reg file, that you have just made to melt in your registry. I hope that this will take care of the issue.

    *****
    Windows Registry Editor Version 5.00

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
    'EnableProfileQuota ' = -.
    'ProfileQuotaMessage ' = -.
    "MaxProfileSize" = -.
    'IncludeRegInProQuota ' = -.
    'WarnUser ' = -.
    'WarnUserTimeout ' = -.
    *****

    MS - MVP - Elephant Boy computers - don't panic!

  • Java Web Start application runs under jre8u40 but not jre8u51

    We have a Java web application that uses javaws. It runs very well under the update of Java 8 40, but under the update Java 8 51 jp2launcher.exe stops right, without launching the application.

    • I found the papers in C:\Users\me\AppData\LocalLow\Sun\Java\Deployment\log, but they are identical between j8u40 and j8u51 (except of course for the order of pots are loaded, the version of jre and the start time).
    • I connected the launch using Process Monitor for the two versions of jre. Under j8u51, jp2launcher.exe ends with just the result of 'SUCCESS' Comparing the two newspapers procmon, I can't choose anything unusual. They have both search in the directory C:\Users\me\AppData\LocalLow\Sun\Java\Deployment and their respective C:\Program Files\Java\jre1.8.0_XX\lib directories and others like, but then the j8u51 there is only.
    • The Windows event logs show any what that touch of Java.
    • I managed to run the jnlp whose value "JAVAWS_VM_ARGS = - Xcheck:jni - XX: - TraceClassLoadingPreorder - XX: + PrintCommandLineFlags-verbose: jni-verbose: class - verbose: gc - XX: + PrintGCDetails-Djava.util.logging.config.file=C:\misc\logging.properties" and connect the stdout/stderr. It looks like an end to newspapers javaws and jp2launcher for versions of the output, then both jre8u40 and jre8u51. Probably in the j8u40 version it launches another jp2launcher.exe to run the application.
      • Comparing newspapers two output gives nothing interesting. Classes are loaded in almost the same order, for the most part identical classes other than the few differences that are explained easily by just be more up-to-date used classes.
    • Finally, I was able to launch the application directly, using java.exe, by getting the customer their unpacking and installing the server files. The application itself works fine in jre8u51, so the problem is definitely javaws himself.

    I find very little documentation on the inner workings of Java Web Start and no documentation at all on jp2launcher.exe. Can anyone suggest what could go wrong here, or other diagnostic measures I can take?

    e: sorry for the strange user name. I tried to change it in my profile, but the forums don't seem to accept the change.

    Hi people.

    I managed to find the solution. There are several factors that interact and I think one of them is a bug in Java Web Start.

    Please see full report at http://stackoverflow.com/questions/31556273/java-web-start-application-runs-under-jre8u40-but-not-jre8u51

  • I use Adobe cloud to disrupt the application, but the user that I assign an application, the software does not seem his profile

    I use Adobe cloud to disrupt the application, but the user that I assign an application, the software does not seem his profile

    Hi stephanet60407823,

    If the software does not appear on her profile, it means that it did not accept the invitation that you sent to him.

    Ask him to please follow the steps here: https://helpx.adobe.com/creative-cloud/kb/accept-invitation-team-enterprise.html

    Let us know if this helps!

    Kind regards

    Aurélie

  • I want to uninstall the application, because it does not stay charged and want more on my computer and not perform the steps for removing it, but none does not work for me.

    I want to uninstall the application, because it does not stay charged and want more on my computer and not perform the steps for removing it, but none does not work for me.

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

    Sign out of your account... Uninstall... to run vacuuming...

    -http://helpx.adobe.com/creative-cloud/help/install-apps.html (and uninstall)

    -https://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html

  • Reinstal Cloud but not uninstal not possible as long as the app running, but not other applications in the Task Manager

    Hello

    I need to reinstall the Cloud but uninstal is not possible as long as the app running, but not other applications in the Task Manager.

    Windows 7

    Uninstaller: "another version of office of creative cloud or an installer Adobe is running...". »

    TaskManager: browser runs only.

    Windows Installer / change: "unable to désinstaller creative cloud to desktop. You still have creative Cloud computer applications that need it.

    So, how I re install this, thank you

    Safe mode using the application of Creative Cloud Uninstaller has worked.

  • Hello, I had a problem with my band. It does not really suppose he numbered scenes everything in order and he has so far in until I missed an and changed for the good order. But now when I go back to where I left and I have create a new scene

    Hello, I had a problem with my band. It does not really suppose he numbered scenes everything in order and he has so far in until I missed an and changed for the good order. But now when I go back to where I left and I have create a new scene number come up as * it and I need to change personally. is their any way I can change it to order normally?

    Hello

    You can manage this through the "Manage scene numbers" option in the menu 'Production '.

    There is a setting in this dialog box to assign scene numbers automatically to the new scenes.

Maybe you are looking for

  • flickering in Windows Explorer

    I have a HP G61 laptop. I'm having a problem with my creations photo once I have loaded it does not. I ran many diagnoses of the system to solve these problems, nothing has worked and both my windows Explorer keeps causing a flickering icon every 30

  • How to stop the spam e-mails in my Inbox to hotmail address?

    Original title: too much junk in your Inbox! why I am and how do I stop these emails from flippin with address "contact12543" ect. ? I'm as much as 46 per day! It's annoying, I'm tired of him, and I do not give my hotmail address to anyone, I don't k

  • all programs and files in the menu start (excpet 4-5) have disappeared.

    I use vista.  When I click on the start menu, there are no programs not listed and when I choose all PROGRAMS there are only 8 folders listed. I stopped twice and logged on as user admin and regular with the same results.  All of these programs were

  • Impossible to install the BlackBerry Plugin for Eclipse

    So I tried very hard to get this * beep * installed for some time now, but nothing still evokes the problem that I have as far as I know. I downloaded the plugin from BlackBerry website. It's huge, it's called "BlackBerry_JDE_PluginFull_1.1.2.2010041

  • How can I use the "fnd_user_pkg.updateuser" package to disable users in bulk?

    HelloHow can I use the "fnd_user_pkg.updateuser" package to disable users in bulk?in EBS R12.1.3, oracle 11g.Please see the request for information of the user-------------------------------------------------------------------------------------SELECT