mysql - How can i select rows base on counts of field related id with pattern -


i have field name ids_col , pattern of (id)(id)(id)(id) (90)(200)(102)(33) want check if id (in ids_col) available in second table, return 1 else return 0. (select id sec_table id = this.id return 1 else 0) "in each practises" , count result . should calculate count[(1)(0)(1)(1)] total , return value. in above example have 3 in field. , @ last select table total = 3


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -