×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




So really, you aren't interested in the plant number (since the requirement
is that both plants must have a record).  In this case, you are only
interested in the ASNs that appear more than once.  It seem be simplistic,
but Grouping and Count(*) work great for this kind of stuff:

Select ASN, Count(*) as Count
from yourtable
group by ASN
having Count(*) > 1


This is, of course, assuming that the Plant number/ASN combination are
unique.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.