一句SQL语句的问题
select   *   from   A   where   a=1   
 select   *   from   B   where   b=2   
 我想查出来a=1的数据同时排除掉b=2的数据   
 请问如何用一个select的语句来实现?
------解决方案--------------------where a=1只显示a=1的数据啊,不明白LZ的意思
------解决方案--------------------有关联的主键么
------解决方案--------------------SQL Server的差集是比较难做的   
 如果是SQL Server 2005 简单一点   
 select * from A where a=1 
 EXCEPT 
 select * from B where b=2   
------解决方案--------------------select * from A where a=1 and not in select * from B where b=2   
 这样的??
------解决方案--------------------SQL Server的差集 没有任何关联的两个表  要差集做什么。。。。不明白
------解决方案--------------------兩表有什么關聯嗎﹑?
------解决方案--------------------slect * from a where a=1 and b !=2
------解决方案--------------------select * from a where b not in(select * from where b=2)  and a=1