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

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

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