Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove duplicates

Status
Not open for further replies.

cam292

Programmer
Jul 14, 2004
1
GB
I am looking to remove duplicates for a string field.

For example the field uses someones unique logon name and I want to give everyone a unique login.

The only way I thought of doing this was to use a function, but that means I need to install the language etc.

For duplicates I would just like to append a unique ID :

eg

Bill
Bill1
Bill2
...

Without the use of a cursor, I could not see a way around it. I am familiar with Oracle and SQL Server, but I cannot seem to find an equivlent of their procedures in postgres.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top