Check out example codes for "sql check same row". It will help you in understanding the concepts better.

Code Example 1

//  select duplicate -------------
-- users (name, email) --
// -------------------------------

SELECT
    id, school_id, COUNT(*)
FROM
    booster_school_languages
GROUP BY
    id, school_id
HAVING 
    COUNT(*) > 3

Learn ReactJs, React Native from akashmittal.com