标签:count and _id null not 有限公司 mct from select
select count(2)
from vw_pmcthtdj A
WHERE a.HTBL_ID not in (select jg.jgjs_htid
from PMCTJGJS jg
where jg.JGJS_SFXX = ‘1‘
and jg.jgjs_spzt = ‘11‘
and jg.jgjs_htid = a.HTBL_ID) /*and len(HTBL_TBDWMC)>0*/
and (a.LSXM is null or a.LSXM <> ‘1‘) and htbl_tbdwmc like ‘上海市政建设有限公司%‘ and htbl_yjjgrq is null
标签:count and _id null not 有限公司 mct from select
原文地址:http://www.cnblogs.com/lsjava/p/6258862.html