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
Post a Comment