Forums

This topic is locked

Query based on duplicate fields

Posted 21 Jan 2005 17:24:59
1
has voted
21 Jan 2005 17:24:59 Chriz L. posted:
How can i create an SQL Statement based on fields that appears more than once in a table?

Thank you once again!

Replies

Replied 21 Jan 2005 18:33:55
21 Jan 2005 18:33:55 Vince Baker replied:
If you mean how can you only show one example of each then use the following:

Select Distinct (your_field_name)
from yourtablename


Regards
Vince

DMX Talkzone Manager

Visit my home: www.chez-vince.com
(Now completely CSS based and bye bye to all tables!)

VBScript | ASP | HTML | CSS | SQL | Oracle | Hosting
Replied 22 Jan 2005 08:20:25
22 Jan 2005 08:20:25 Chriz L. replied:
no it's not what i mean<img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle>

I want to get the duplicate records ( records that appear with the same value more than once) based on one field (not the primary since it can't be duplicate)

Reply to this topic