Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Selective printing of the Duplicates

by nikosv (Hermit)
on Jan 31, 2013 at 12:41 UTC ( #1016313=note: print w/ replies, xml ) Need Help??


in reply to Selective printing of the Duplicates

have tried doing that purely with SQL ?

the having clause filters the duplicates while the use of the inline view filters using column2

select * from ( select column1,count(*) from table group by column1 having (count(*)>1 ) ) a, table b where a.column1 = b.column1 and b.column2='**';


Comment on Re: Selective printing of the Duplicates
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016313]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2014-10-22 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (112 votes), past polls