how to use intersection in a db_query?
I've got it, just using :

$check = db_query("SELECT DISTINCT A.something FROM {table_A} as A
    where something not in (
    SELECT  B.something FROM {table_B} as B)
    ")-&gt;fetchField();