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
Are sql database names case sensitive?
what is a record in a database ? : Sql dba
What is trigger in pl sql with examples?
What are the two types of cursors in pl sql?
What is procedure explain with program?
What is the benefit of foreign key?
what is cross join? : Sql dba
How do you create a db file?
How do I view a table in sql?
What is pl sql code?
How can one get sql*loader to commit only at the end of the load file? : aql loader
What is full form of rtm?
how to concatenate two character strings? : Sql dba
What is offset in sql query?
Why do we use subquery?