Unix Technical Forum

AW: Finding duplicate rows

This is a discussion on AW: Finding duplicate rows within the Informix forums, part of the Database Server Software category; --> JaxenT wrote : > I am trying to find duplicate rows, and only want to return one rowid > ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 11:54 AM
Model-Bosch, Tilman
 
Posts: n/a
Default AW: Finding duplicate rows

JaxenT wrote :

> I am trying to find duplicate rows, and only want to return one rowid
> from the pair.

Just an idea:

SELECT FIRST 1 i2.rowid FROM
FROM inv i1, inv i2
WHERE i1.h_num = 698
AND i2.h_num = i1.h_num
AND i1.inv_date = i2.inv_date
AND i1.order = i2.order

worked for me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:27 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com