Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Selective printing of the Duplicates

by nikosv (Chaplain)
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='**';

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016313]
[chacham]: I'm sure this is old, but i just came across it: If you put a million monkeys at a million keyboards, one of them will eventually write a Java program. The rest of them will write Perl programs.
[LanX]: lol
[Corion]: Woo hoo! A new Auralnauts episode!
LanX mean unfair and funny
[LanX]: but most java code looks like from one million monkey using eclipse. ..

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (13)
As of 2018-04-23 16:03 GMT
Find Nodes?
    Voting Booth?