IF EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[privateview_11]') AND type = 'V')
DROP VIEW [dbo].[privateview_11]
GO
CREATE VIEW [dbo].[privateview_11]
AS
select 
da.ord_xm as[姓名],da.ord_rzbm as[在职片区],da.ord_sfzhm as[身份证号码],da.ord_zzzb as [在职店铺],
da.ord_dpbh as [店铺编号],da.ord_zhij as [职级],da.ord_lxdh as [联系电话],
da.ord_gh as [工号],da.ord_id objid
from order_40 da
where
da.ord_zzzk='在职' and da.ord_rztx='营运'