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 is mysqli_free_result?
What is sql vs mysql?
What is csv?
How to delete the repeated records from a table?
I've looked but can't find a MySQL equivalent for MS SQL's xp_cmdshell. I have 7z files that I want to unzip and load into MySQL. I'm trying to write a sp to do the unzip, but I can't find a way to do that. Can anyone provide an example of a similar process in Windows? TIA.
What is the latest mysql?
What mysql -u john -p command does?
How many concurrent queries can mysql handle?
What is longblob in mysql?
What is the difference between truncate and delete?
Is mysql a framework?
How do I import database through command line?
What are date and time data types?
What is 'mysqlshow'?
How do I install mysql?