监理公司管理系统 | 工程企业管理系统 | OA系统 | ERP系统 | 造价咨询管理系统 | 工程设计管理系统 | 甲方项目管理系统 | 签约案例 | 客户案例 | 在线试用
X 关闭
培训学校管理系统

当前位置:工程项目OA系统 > 学校OA管理系统 > 相关系统 > 培训学校管理系统

更新ALTER VIEW [dbo].[FZJView]

申请免费试用、咨询电话:400-8352-114

    GO SET QUOTED_IDENTIFIER ON
GO ALTER VIEW [dbo].[FZJView]
AS
SELECT     dbo.Clue.uClu_ID, dbo.Clue.dClu_CreateTime, dbo.Clue.cClu_Num, dbo.Clue.cClu_CName, dbo.Clue.iClu_Age, dbo.Clue.cClu_Phone, dbo.Grade.cGra_Name AS 年级,
                      dbo.ExtensionWorkers.cExtW_Name AS 推广人员, dbo.Clue.cClu_State, dbo.Clue.cClu_KCGW, dbo.Channel.cCha_Name AS 渠道,
                      dbo.Clue.dClu_CreateTime AS Expr1
FROM         dbo.Clue LEFT OUTER JOIN
                      dbo.Channel ON dbo.Clue.uClu_ChaId = dbo.Channel.uCha_ID LEFT OUTER JOIN
                          (SELECT     uCha_CluId
                            FROM          dbo.Charge AS Charge_1
                            GROUP BY uCha_CluId) AS Charge ON dbo.Clue.uClu_ID = Charge.uCha_CluId LEFT OUTER JOIN
                      dbo.Grade ON dbo.Grade.uGra_ID = dbo.Clue.uClu_GraId LEFT OUTER JOIN
                      dbo.ExtensionWorkers ON dbo.ExtensionWorkers.uExtW_ID = dbo.Clue.uClu_ExtWId
WHERE     (Charge.uCha_CluId IS NULL) GO
USE [fjzxpx]
GO
发布:2007-03-30 10:23    编辑:泛普软件 · xiaona    [打印此页]    [关闭]