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
What are the purposes of using enum and set data types?
How to run a sql statement?
How do you name a table?
How to use count function in mysql?
Restore database (or database table) from backup.
How do you create a schema?
What is sql in mysql?
What is mysql optimization?
Which is better mysql or mssql?
Is mysql same as mariadb?
How you will Show unique records.
How will you export tables as an xml file in mysql?
Is mysql a dbms?
Can I use mysql for free?
how you will Create a database on the mysql server with unix shell.