Need to create unique Recordset

Version Oracle = database Oracle 11 g Express Edition Release 11.2.0.2.0 - Production

Hi gurus

I have the following data and you must create the unique record set using an increment in the columns of sysdate.

Examples of data

as with a reference

(

Select 'abc' ID, sysdate date1 of union double all the

Select 'xbc", sysdate from dual union all

Select "zzz", double sysdate)

Select * reference;

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

I have a unique constraint with the combination of ID and date1 and want this kind of query in which I can achieve different date1 by rank.  Thanks in advance

Concerning

Shu

Check the query with interval, each line having 1 second difference

ALTER session set nls_date_format = 'YYYYMMDDHH24MISS ';

as with a reference

(

Select 'abc' ID, sysdate date1 of union double all the

Select 'xbc", sysdate from dual union all

Select "zzz", double sysdate)

Select id, date1 + numtodsinterval(rownum,'second') reference new_date;

Output

ABC 20140506105546

XBC 20140506105547

zzz 20140506105548

Tags: Database

Similar Questions

  • Need help creating Unique SSID and secure network

    My AP has been recently reset the SSID I had chosen has of course been erased and AP is now considered to be "linksys". It also now broadcasts as an open network.

    I tried to create a new network using the Intel PROSet/Wireless graphical user interface that came with my PC and it allows me to create a SSID and put a password on it, but it does not affect the real "linksys" network even if I would have erased "linksys" in the text box and enter my own.

    I tried in vain to reset the AP again and connect to 192.168.1.245 using IE and firefox, I get an error loading page every time. I have also tried to set the IP address of my PC to the same meanings and the subnet by default 255.255.etc and could not connect.

    I also tried to connect the AP to the pc directly, what does not work.

    What I am doing wrong.

    PS. I don't have the original installation CD, I think it would be solved.

    I managed. Thank you!

  • Need to create separate Microsoft accounts for each user on Skype?

    We have a laptop family with a single connection from Windows, and we Skype to instsalled office. My husband and I have our own Skype accounts, and we've been able to connect to these separate accounts (not at the same time, but that's fine). Today, I opened Skype, and the interface was changed. I got my husband to open my session, but he said that I need to create a second account from Microsoft to connect under another user of Skype. I don't want a new account from Microsoft. I have enough accounts of various kinds, and I want a unique Windows connection for this laptop. I want different users of a Windows account to connect to Skype with Skype accounts that we already have in place. How to do this?

    I think I found my problem. I reinstalled Skype and realized that what I was watching was a Skype app, I had not seen before and not the Skype for the desktop application. I am connected to Skype for Windows under my own account.

    Sorry for jumping the gun and thank you to all of you who have been thinking about this issue.

  • Create unique pages of a document - CS6 InDesign files

    I have an InDesign CS6 file with about 50 pages.

    I need to create each page's unique files, so in the end, I'll end with 51 files (the original file and 50 individual files with a page each)

    How I accomplished this?

    Put in a sufolder named Version 6.0 Scripts

  • How to create unique variables for... in loop? (AS2)

    Hello

    I have a function onEnterFrame controlling all the movie clips in a table. The movement of each of these clips is controlled by a few variables - speed, acceleration, etc - that are changed on every enterFrame. I can't understand how to create unique variables for each element of the array. Now my variables are the same for all elements, and therefore the proposals of each video clip are the same.

    I used this code to add my video clips in the table:

    for (i = 0; i < starNumber; i ++) {}
    duplicateMovieClip (star, "star" + I, i);
    starArray.push (this ["star" + String (i)]);
    }

    I do a similar thing to create unique variables for each? Or is there something I need to do my loop (myClip in myArray) which is contained in my onEnterFrame function?

    I can post my code if that would help (65 lines).

    Creating unique variables is easy way out. Here's the modified code using unique variables that should solve your problem:

    var i: Number;

    var starArray:Array = [];

    var starArray_X:Array = [];

    var starArray_Y:Array = [];

    var mc:String;

    var scale: number;

    var speedXMod:Number;

    var speedYMod:Number;

    var starNumber:Number = 10;

    var minSize:Number = 15;

    var maxSize:Number = 80;

    var speed: number = 0.2;

    var minSpeed:Number = 0;

    var maxSpeed:Number = 1;

    for (i = 0; i< starnumber;="">

    duplicateMovieClip (star, "star" + I, i);

    starArray.push (this ["star" + String (i)]);

    }

    (MC starArray) {}

    starArray [mc] ._x = (Math.Random () * Stage.width);

    starArray [mc] ._y = (Math.Random () * Stage.height);

    scale = (minSize + (Math.Random () * (maxSize - minSize)));

    ._xscale starArray [mc] = scale;

    starArray [mc] ._yscale = scale;

    var startSpeedX:Number = ((Math.pow (-1, (Math.round (Math.random ())) * (minSpeed + (Math.Random () * (maxSpeed - minSpeed)));)))

    var startSpeedY:Number = ((Math.pow (-1, (Math.round (Math.random ())) * (minSpeed + (Math.Random () * (maxSpeed - minSpeed)));)))

    [mc] starArray_X = startSpeedX;

    [mc] starArray_Y = startSpeedY;

    onEnterFrame = function() {}

    (MC starArray) {}

    speedXMod = ((Math.random () * acceleration)-(0,5 * accélération));

    speedYMod = ((Math.random () * acceleration)-(0,5 * accélération));

    If (((Math.abs (starArray_X [mc] + speedXMod)) < maxspeed)="" &&="" ((math.abs(stararray_x[mc]="" +="" speedxmod))=""> minSpeed)) {}

    [mc] starArray_X += speedXMod;

    } else {}

    [mc] starArray_X = speedXMod;

    }

    If (((Math.abs (starArray_Y [mc] + speedYMod)) < maxspeed)="" &&="" ((math.abs(stararray_y[mc]+="" speedymod))=""> minSpeed)) {}

    [mc] starArray_Y += speedYMod;

    } else {}

    [mc] starArray_Y = speedYMod;

    }

    If (((starArray [mc]._x + starArray_X[mc]) > 0) & ((starArray [mc]._x + starArray_X[mc])))<>

    starArray [mc] ._x += starArray_X [mc];

    } else {}

    starArray_X [mc] * = - 1;

    starArray [mc] ._x += starArray_X [mc];

    }

    If (((starArray [mc]._y + starArray_Y[mc]) > 0) & ((starArray [mc]._y + starArray_Y[mc])))<>

    starArray [mc] ._y += starArray_Y [mc];

    } else {}

    starArray_Y [mc] * = - 1;

    starArray [mc] ._y += starArray_Y [mc];

    }

    }

    }

    }

  • have forgotten the administrative password and the need to create a new

    have forgotten the administrative password and the need to create a new, but without knowing an old failed to create a new

    your options are explained here

    Change or reset the password of a user account from OS X - Apple support

  • You will need to create a question to create a connection.

    Just need to create a question to create a connection. Mozilla may want to think about giving users the ability to create a connection without having to ask a question. Many of us are probably just a newspaper to answer to an existing message, as is my case today.

    Problem is that this forum is getting spammed the latter time (especially with streams tv shows) if it was easier to get an account and post without making a question first then this forum may end eventually and see even more spam.

    Most of the members perhaps not abreast of the spam unless they come to see him before a mod/admin has marked as spam and it is hidden.

    more easy no earlier.

  • I need to create a table of contents in iPages but I want only one word for the title, not the line of holes. Or, how can I change the contents of the table? Thank you!

    I need to create a table of contents in iPages but I want only one word for the title, not the line of holes. Or, how can I change the contents of the table? Thank you!

    Yes, you can have a one word title, by assigning a paragraph style title to this one word. No, you cannot change the text in a Table of contents, but you can change paragraph style font attributes (line) and add for example, a head of points between the types of OCD paragraph and page numbers. No part of the table of contents will not provide hyperlinks in exported PDF documents.

    When you look up in the menu bar, you can see the word iPages, or simply Pages. There is no product of iPages.

  • I created a custom and registered with a specific name date format. However, when I open a new worksheet, my saved format does not display in the menu drop-down? Am hoping that I don't need to create the same format for each new sheet?

    I created a custom and registered with a specific name date format. However, when I open a new worksheet, my saved format does not appear in the menu drop-down? Am hoping that I don't need to create the same format for each new sheet?

    You must save the spreadsheet containing the new date as a model format and use this custom template for each new spreadsheet where you want that this date format personalized at your disposal.

  • I need to create a windows reinstallation disc

    I need to create a disk to reinstall windows.
    I picked up a virus and mcafee are not able to remove it if you need to reinstall windows...

    The recovery disk create function coverage this?

    Hello

    You mean, you want to create a recovery disk.
    What cell phone do you have?
    You have preinstalled software called Toshiba Recovery Disk Creator?
    If so, try this.
    Usually, this software creates a Toshiba Recovery disk that helps you to restore the operating system to factory settings.
    But note; This will of functions using only the operating system preinstalled by Toshiba.

    The other option might be (if available) HARD drive recovery
    Try pressing F8 (when starting laptop computer), and then select Repair my computer, then HARD drive recovery

  • I want to install windows on my new macbook and I need to create a partition. I have not now what size to make my windows partition. Can someone give me some advice?

    I want to install windows on my new macbook and I need to create a partition. I have not now what size to make my windows partition. Can someone give me some advice?

    1. in what year is your Mac?

    2. What is the size of your storage internal?

    3. what version of Windows?

    4 as a general rule 60-100 GB for W8 + / W10 is recommended. You can also create a minimum Windows (30-50 GB) and use an external drive D: for documents applications for portability.

  • When I try to open the word of e-mail, I thought that I can't open it and I need to create an association

    original title: open and save a file by email

    I created a file word @ work, he sent to my home PC, and when I try to open it I tells me that I can't open it and I need to create an association in my folder options to do this.  I don't know how to do this.  Please notify.

    What is the attachment file extension? .doc?

  • Need to create a task sequence for deploying Win - XP in MDT 2010

    Hello

    I'm having the lab for MDT 2010 configuration, now I need to create a task sequence for deploying operating system Win - XP with MDT 2010. Is it possible to create in MDT 2010 if yes please let me know the steps.

    It helped me http://www.edutechnow.com/?p=122

  • I need to create an association, in the control panel of the associations set to open a .i file seems to have lost this program to do?

    Could not open a file, the message came, I need to create an association in the control panel be greatfull advises you on how to do this thanks Brian Jones.

    Hello

    What is the file extension?

    You must have this program installed to open this specific extension

    If it's a file .doc, you must have Word installed

    If a .xls Excel file must be installed

    etc.

    read this:

    How do I... Change file extension associations in Windows Vista?

    http://www.TechRepublic.com/article/How-do-i-change-file-extension-associations-in-Windows-Vista/6172036

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-default-programs-using-set-program-access-and-computer-defaults

  • I need to create a password to access my computer.

    Please direct me on how to create your password for my computer every time I want to use my computer.

    I need to create a password in order to deter any free friends to my computer when I'm not home.

    When friends could easily open and use my computer at will, they could download malicious Web sites that can seriously infest my computer with Virus.This, that's exactly what I want to protect.

    Thank you.

    Hello

    http://Windows.Microsoft.com/en-us/Windows-Vista/protect-your-computer-with-a-password

    1. Open a user account by clicking on the button start , clicking Control Panel, clicking user accounts and family safety, and then clicking user accounts.

    2. Click on create a password for your account.

       
    3. Type the password in the password box, and then retype the password in the area confirm the new password.

    4. If you want to use a password hint, type the hint in the password hint box.

    5. Click on create password.

    How to create a password for a user account in Vista

    http://www.Vistax64.com/tutorials/123349-user-account-create-password.html

Maybe you are looking for