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 -

r - Quantstrat logical error while running applySignals - missing value where TRUE/FALSE needed -