IF  NOT EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[dbo].[EST_PROD_CPL_DEMANDA_PROC_CPL]') AND name = N'IDX_EST_PROD_CPL_DEMANDA_PROC_CPL_CD_FILIAL_CD_EMP')
BEGIN
CREATE NONCLUSTERED INDEX IDX_EST_PROD_CPL_DEMANDA_PROC_CPL_CD_FILIAL_CD_EMP
ON [dbo].[EST_PROD_CPL_DEMANDA_PROC_CPL] ([CD_EMP],[CD_FILIAL])
INCLUDE ([CD_CTR_DEMANDA_PROC],[CD_PROD],[QTDE_DEMANDA])
END