What is the Query to print out the individual total number of
duplicate row in sql.
Answer Posted / raveendran
SQL>select * from a;
A B
---- -------------------------
1 Name
ABC
BCA
fdhgjdshfj
3 Name
ABC
BCA
fdhgjdshfj
2 Name
ABC
BCA
fdhgjdshfj
4 Name
ABC
BCA
fdhgjdshfj
5 asd
A B
---- -------------------------
asd
asd
asdd
6 asd
asd
7 asd asd
8 asd asd
sql>select count(b),b from a group by b having count(b)>=1;
T(B) B
---- -------------------------
4 Name
ABC
BCA
fdhgjdshfj
1 asd
asd
1 asd
asd
asd
asdd
2 asd asd
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Explain sql data types?
Where is pl sql used?
Can %notfound return null after a fetch?
what is the difference between delete and truncate commands? : Sql dba
Can you join views in sql?
Why is sql important?
How do I find duplicates in the same column?
What is the use of function in sql?
what does the t-sql command ident_current does? : Transact sql
What does select top 1 do in sql?
Does sql require a server?
What is numeric function sql?
What is a temporal table?
Why we use triggers in mysql?
What is cascade in sql?