how to retrieve only duplicate values in a table

Answer Posted / p.rajasekar

select count(<Duplicate_FieldName>),fees
from Table Name
group by <Duplcate_FieldName>
having count(<Duplicate_FieldName>)>1

Regards
P.Rajasekar

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between stored function and application function?

603


what does the t-sql command ident_incr does? : Transact sql

612


what are date and time data types in mysql? : Sql dba

510


How many aggregate functions are available there in sql?

536


How can I get the number of records affected by a stored procedure?

586






Do we need to create index on primary key?

475


What is the difference between clustered and non-clustered index in sql?

531


What is cursor status?

771


What is java sql package?

549


How many types of triggers are there in pl sql?

583


What is rownum in sql?

565


how to concatenate two character strings? : Sql dba

562


Which one is faster ienumerable or iqueryable?

495


Why we use triggers in mysql?

566


What is the difference between delete and truncate statement in sql?

506