database - how to find an amount of certain duplicates in mysql table? -


so have table persons. table connects vehicles manytomany. need find how many times id appear on table person_vehicle. how can this? asking

here 2 suggestion.

for names: gives number of times names repeated.

select count(name) persons group name;  

specifically jake:

select count(name) persons name = "jake"; 

Comments

Popular posts from this blog

apache - setting document root in antoher partition on ubuntu -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -

Process 'command 'F:\android-sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1 -