The question basically means is how can we find duplicate values in a row? Example: I am making a blog website and in that, I want to display trending tags...
For this I created 2 tables:
- blog
- tag
in the blog table, my blog record is there, and in the tag table there are two columns
- id (PRIMARY)
- name
- blog_id
I want to display the top repeating names that come in the tag table. So, can you please just tell me what is the solution about it?
Like here Java repeats most time in the table. So, I just want the output to be like:
- JAVA
- Database
- PHP