select * from BB where A not in (select A from AA where A is not null)
or
select * from BB b where not exists (select 1 from AA a where a.A = b.A)是要表达这个意思吗?