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 / thilip
SELECT sitename,COUNT(sitename) FROM tbl_sites GROUP BY
sitename
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
In mysql, what is the default storage engine?
What is the latest version of php and mysql?
How to run a sql statement?
What is definer in mysql trigger?
Explain about the architecture of MYSQL?
Write a query to select all teams that won either 1, 3, 5 or 7 games.
I want to start and stop mysql on windows? How do I do that?
What is mysql uuid?
How do I start mysql in linux?
How do I run a query in mysql?
What are features of mysql?
What is pdo mysql?
What is difference between mysql and mysql server?
What is blob storage?
How triggers can be used in mysql?