SET ENGINEBEHAVIOR 70
SET SAFETY OFF
CLOSE DATABASES
SELECT 0
USE pyk ALIAS kg &pyk kg 什么意思
SELECT 0
USE pytj ALIAS bmk &pytj 是评议统计 bmk 什么意思
SCAN
c_ygxm=ALLTRIM(bmk.ygxm) &ygxm 员工姓名
SELECT sum(IIF(EVALUATE(c_ygxm)='很满意',1,0)) as py1,; & py1 是什么意思
sum(IIF(EVALUATE(c_ygxm)='满意',1,0)) as py2,;
sum(IIF(EVALUATE(c_ygxm)='不满意',1,0)) as py3 from kg into cursor tmp
SELECT bmk
REPLACE bmk.py1 WITH tmp.py1
REPLACE bmk.py2 WITH tmp.py2
REPLACE bmk.py3 WITH tmp.py3
ENDSCAN