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 / sriram

SELECT sitename,COUNT(sitename) FROM tbl_sites GROUP BY
sitename

Is This Answer Correct ?    5 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you create and drop view in mysql?

513


How do I grant privileges to a user in mysql phpmyadmin?

481


How do you say mysql?

494


How do I create a mysql database?

501


all the queries used in sql

2162






Does mysql support nosql?

492


Is mysql easy to learn?

488


What is meant by decimal (5,2)?

549


What is a join in mysql?

497


How do I find my mysql username and password?

557


Can you tell the difference between mysql_connect and mysql_pconnect? : Mysql dba

501


What are the types of database engines available in mysql?

484


Can I install mysql on mac?

526


Is there a free mysql?

501


What is mysql uuid?

534