mysql - Fetch duplicate rows with SQL -
i trying develope query fetch rows having duplicate values, need fetch both records i.e duplicating record , real one, example
table
id keyword ------------------- 1 apple 2 orange 3 apple 4 grape 5 banana 6 grape the query result should be:
id keyword ------------------- 1 apple 3 apple 4 grape 6 grape please me!
query:
select * table keyword in (select keyword table group keyword having count(keyword)>1)
Comments
Post a Comment