where riqi='2003-07-04' and (chae <=1 and cheh not like '巨%')

解决方案 »

  1.   

    where riqi='2003-07-04' and chae <=1 and cheh not like '巨%'
      

  2.   

    where riqi='2003-07-04' and chae <=1 and cheh not like '巨%'全部用and
      

  3.   

    riqi='2003-07-04' and not (chae >1 or cheh like '巨%')
      

  4.   

    必须还要加一个条件cheh<>''  最好这样写 isnull(cheh,'') <> ''所以答案应该是where riqi='2003-07-04' 
    and chae <=1 
    and isnull(cheh,'') <> '' 
    and cheh not like '巨%'