标题: 请问大家iif做何解释,比如如下语句 [打印本页] 作者: ycljh99 时间: 2007-3-11 20:12 标题: 请问大家iif做何解释,比如如下语句 SELECT csc.MO_NAME, [channel], Format([CURRDATE],"yyyy/mm/dd") AS [date], [period], round([ST22]/3600,4) AS 话务量, iif(([st6]+[st7])>0,round(([st8])/([st6]+[st7]),4)) AS 信道阻塞率
FROM csc, cm_cell_info
WHERE csc.mo_name=cm_cell_info.name And ([ST22]/3600)<0.4 and iif(([st6]+[st7])>0,round(([st8])/([st6]+[st7]),4))<=0.05 and csc.PERIOD>=9 And [channel]=7 AND POWER="500mw"
ORDER BY [MO_NAME], Format([CURRDATE],"yyyy/mm/dd"), [period];