The table tbl_sites contains the following data:
-----------------------------------------------------
Userid sitename country
------------------------------------------------------
1 sureshbabu indian
2 PHPprogrammer andhra
3 PHP.net usa
4 PHPtalk.com germany
5 MySQL.com usa
6 sureshbabu canada
7 PHPbuddy.com pakistan
8. PHPtalk.com austria
9. PHPfreaks.com sourthafrica
10. PHPsupport.net russia
11. sureshbabu australia
12. sureshbabu nepal
13. PHPtalk.com italy
Write a select query that will displayed the duplicated
site name and how many times it is duplicated?
Answer Posted / dinesh goyal, scorpio
select sitename,count(sitename) as total_sites from
tbl_sites group by sitename having (count(sitename)>1)
| Is This Answer Correct ? | 22 Yes | 1 No |
Post New Answer View All Answers
How do I completely remove mysql from windows?
What are the 'mysql' command line arguments?
What is a result set object?
How to delete a table.
How large can a mysql database become?
How to return query output in xml format?
What is the command used to create a database using php and mysql?
How to delete an existing column in a table?
What is query log in mysql?
What is a delimiter in mysql?
What is a data directory?
What is select query in mysql?
What is deterministic in mysql?
Is mysql same as sql?
Difference between CHAR and VARCHAR?