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
What is a sql select statement?
What is sql entity?
how to use 'mysql' to run sql statements? : Sql dba
What schema means?
How much does a sql dba make? : SQL DBA
i have some prob lem to tell me about my self in interview first round ...
How many tables can a sql database have?
Why are indexes and views important to an organization?
What are inbuilt functions in sql?
What is record in pl sql?
Can I call a procedure inside a function?
How to look at the current sql*plus system settings?
how can we know the number of days between two given dates using mysql? : Sql dba
what are the differences between get and post methods in form submitting. Give the case where we can use get and we can use post methods? : Sql dba
What is difference sql and mysql?