當前位置:工程項目OA系統(tǒng) > 學校OA管理系統(tǒng) > 相關系統(tǒng) > 培訓學校管理系統(tǒng)
添加視圖TGRYYJView
FROM (SELECT dbo.ExtensionWorkers.uExtW_ID, dbo.ExtensionWorkers.cExtW_Name, dbo.ExtensionWorkers.cExtW_JobNumber, (CASE WHEN hd.sl IS NULL THEN 0 ELSE hd.sl END) AS 回單數(shù),
(CASE WHEN yx.sl IS NULL THEN 0 ELSE yx.sl END) AS 有效單數(shù), (CASE WHEN wx.sl IS NULL THEN 0 ELSE wx.sl END) AS 無效單數(shù), (CASE WHEN hf.sl IS NULL
THEN 0 ELSE hf.sl END) AS 回訪數(shù), (CASE WHEN bm.sl IS NULL THEN 0 ELSE bm.sl END) AS 報名數(shù), dbo.ExtensionWorkers.dExtW_CreateTime
FROM dbo.ExtensionWorkers LEFT OUTER JOIN
(SELECT uClu_ExtWId, COUNT(DISTINCT uClu_ID) AS sl
FROM dbo.Clue
WHERE (1 = 1)
GROUP BY uClu_ExtWId) AS hd ON hd.uClu_ExtWId = dbo.ExtensionWorkers.uExtW_ID LEFT OUTER JOIN
(SELECT Clue_4.uClu_ExtWId, COUNT(DISTINCT T2.uTMKR_CluId) AS sl
FROM dbo.Clue AS Clue_4 INNER JOIN
(SELECT dbo.TMKRecord.cTMKR_Intention, T1.uTMKR_CluId
FROM dbo.TMKRecord INNER JOIN
(SELECT uTMKR_CluId, MAX(dTMKR_ContactTime) AS dTMKR_ContactTime
FROM dbo.TMKRecord AS TMKRecord_1
GROUP BY uTMKR_CluId) AS T1 ON T1.uTMKR_CluId = dbo.TMKRecord.uTMKR_CluId AND
T1.dTMKR_ContactTime = dbo.TMKRecord.dTMKR_ContactTime
WHERE (dbo.TMKRecord.cTMKR_Intention = '比較強烈') OR
(dbo.TMKRecord.cTMKR_Intention = '一般') OR
(dbo.TMKRecord.cTMKR_Intention = '再聯(lián)系')) AS T2 ON T2.uTMKR_CluId = Clue_4.uClu_ID
WHERE (1 = 1)
GROUP BY Clue_4.uClu_ExtWId) AS yx ON yx.uClu_ExtWId = dbo.ExtensionWorkers.uExtW_ID LEFT OUTER JOIN
(SELECT Clue_3.uClu_ExtWId, COUNT(DISTINCT T2.uTMKR_CluId) AS sl
FROM dbo.Clue AS Clue_3 INNER JOIN
(SELECT TMKRecord_2.cTMKR_Intention, T1.uTMKR_CluId
FROM dbo.TMKRecord AS TMKRecord_2 INNER JOIN
(SELECT uTMKR_CluId, MAX(dTMKR_ContactTime) AS dTMKR_ContactTime
FROM dbo.TMKRecord AS TMKRecord_1
GROUP BY uTMKR_CluId) AS T1 ON T1.uTMKR_CluId = TMKRecord_2.uTMKR_CluId AND
T1.dTMKR_ContactTime = TMKRecord_2.dTMKR_ContactTime
WHERE (TMKRecord_2.cTMKR_Intention = '無意向') OR
(TMKRecord_2.cTMKR_Intention = '異常線索')) AS T2 ON T2.uTMKR_CluId = Clue_3.uClu_ID
WHERE (1 = 1)
GROUP BY Clue_3.uClu_ExtWId) AS wx ON wx.uClu_ExtWId = dbo.ExtensionWorkers.uExtW_ID LEFT OUTER JOIN
(SELECT uClu_ExtWId, COUNT(*) AS sl
FROM dbo.Clue AS Clue_2
WHERE (cClu_State <> '未到訪') AND (uClu_ExtWId <> '00000000-0000-0000-0000-000000000000')
GROUP BY uClu_ExtWId) AS hf ON hd.uClu_ExtWId = dbo.ExtensionWorkers.uExtW_ID LEFT OUTER JOIN
(SELECT Clue_1.uClu_ExtWId, COUNT(*) AS sl
FROM dbo.Clue AS Clue_1 INNER JOIN
(SELECT uCha_CluId
FROM dbo.Charge AS Charge_1
GROUP BY uCha_CluId) AS Charge ON Charge.uCha_CluId = Clue_1.uClu_ID
WHERE (1 = 1) AND (Clue_1.uClu_ExtWId <> '00000000-0000-0000-0000-000000000000')
GROUP BY Clue_1.uClu_ExtWId) AS bm ON hd.uClu_ExtWId = dbo.ExtensionWorkers.uExtW_ID) AS a
- 1TMK對ERP的需求一
- 2國慶節(jié)放假安排
- 3修改視圖
- 4PT對ERP的開發(fā)需求
- 5用戶登錄 - 中青教育OA辦公軟件管理系統(tǒng)及公司介紹
- 6軟件開發(fā)公司應做好軟件開發(fā)工作
- 7教師節(jié)優(yōu)惠版
- 8泛普軟件培訓管理系統(tǒng)價格表
- 9培訓學校管理系統(tǒng)的選擇誤區(qū)
- 10更新待聯(lián)系線索
- 11培訓學校管理軟件先試用,合適在購買
- 12銷售人員應具備的心理素質
- 13學員管理包含那些內容
- 14“小”企業(yè)上ERP必讀
- 152015年元旦放假通知
- 16市場部流程說明:
- 17怎么清除數(shù)據(jù)日志
- 18少兒培訓解決方案
- 19假如購買了培訓學校管理,學校現(xiàn)在已經(jīng)有的學生數(shù)據(jù)要逐個的去錄入嗎?
- 20怎么看“濟寧計算機軟件開發(fā)專場招聘 招聘者求職者難"對眼"”
- 21國慶節(jié)軟件優(yōu)惠活動開始了
- 22近期客戶定做需求
- 23培訓學校管理系統(tǒng)能有什么幫助?
- 24西安一培訓學校管理軟件需求
- 25ERP應用:向云計算方向發(fā)展是大勢所趨
- 26互聯(lián)網(wǎng)大會開幕 工信部“推”云計算
- 27更新使用獎學金卡
- 28更新教材入庫
- 29更新渠道
- 30培訓學校-教務管理系統(tǒng)-學員管理信息系統(tǒng)
成都公司:成都市成華區(qū)建設南路160號1層9號
重慶公司:重慶市江北區(qū)紅旗河溝華創(chuàng)商務大廈18樓