Olaf Schmidt wrote: > Just to add another one to the pile, any flaws I overlooked here...? > > select *, count(b) c_b from foo > where b in (...) > group by a > having c_b = length_of_b_list
The OP apparently wanted actual (a, b) pairs for those a's that satisfy the condition, not just a list of a's. Igor Tandetnik _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users