mysql - syntax error near WHERE when trying to find product with names that are different with the same assigned codes -


i have columns in table product named id , name. each row product single product code.

i retrieve names , ids of similar-sounding products different codes. know basic structure of such query should in mysql?

your last clause should having clause, not clause. using aggregate function on row-level filter.

see sql - having vs where


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -