MySQL Forums
Forum List  »  Oracle

How can i generate a sequence no. for the duplicate records.
Posted by: Lakshmi kanth
Date: June 16, 2009 12:54AM

How can i generate a sequence no. for the duplicate records.

Example

-----------------------------------------------
ID-----|--------Name--------|----Age
-----------------------------------------------
1--------------Test--------------15
2--------------Test--------------21
3--------------Test--------------15
4--------------DEMO--------------19
5--------------DEMO--------------15


I need to create a sequence no. like

-----------------------------------------------
ID-----|------Name---|--SQ.No.--|----Age
-----------------------------------------------
1--------------Test--------1----------15
2--------------Test--------2----------21
3--------------Test--------3----------15
4--------------DEMO--------1----------19
5--------------DEMO--------2----------15

How can i generate incremental sequence no. for the records



Edited 1 time(s). Last edit at 06/16/2009 06:20AM by Lakshmi kanth.

Options: ReplyQuote


Subject
Views
Written By
Posted
How can i generate a sequence no. for the duplicate records.
3831
June 16, 2009 12:54AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.