﻿DROP INDEX IF EXISTS T_FELHASZNALO.NCI_Felhasznalo_IntezmenyId_Id 
CREATE INDEX NCI_Felhasznalo_IntezmenyId_Id 
ON T_FELHASZNALO (
   C_INTEZMENYID
  ,ID
) 
INCLUDE (C_NYOMTATASINEV, C_SZULETESIDATUM, C_UTONEV, C_VEZETEKNEV, C_NEVSORREND, C_ANYJANEVE, C_SZULETESIHELY, C_OKTATASIAZONOSITO)
WHERE TOROLT = 'F'
WITH (FILLFACTOR = 80)
GO

DROP INDEX IF EXISTS T_CIM.NCI_Cim_FelhasznaloId_Gondviseloid_CimTipusa_IntezmenyId
CREATE INDEX NCI_Cim_FelhasznaloId_Gondviseloid_CimTipusa_IntezmenyId
ON T_CIM(
   C_FELHASZNALOID
  ,C_GONDVISELOID
  ,C_CIMTIPUSA
  ,C_INTEZMENYID
)
INCLUDE(C_AJTO,C_EMELET,C_HAZSZAM,C_IRANYITOSZAM,C_KOZTERULET,C_KOZTERULETJELLEGE,C_VAROS,C_ALAPERTELMEZETT,C_TANEVID)
WHERE TOROLT='F'
WITH (FILLFACTOR = 80)
GO

DROP INDEX IF EXISTS T_EMAIL.NCI_Email_FelhasznaloId_GondviseloId_IntezmenyId
CREATE INDEX NCI_Email_FelhasznaloId_GondviseloId_IntezmenyId 
ON T_EMAIL(
   C_FELHASZNALOID
  ,C_GONDVISELOID
  ,C_INTEZMENYID
)
INCLUDE(C_EMAILCIM,C_TANEVID)
WHERE TOROLT='F'
WITH (FILLFACTOR = 80)
GO

DROP INDEX IF EXISTS T_TELEFON.NCI_Telefon_FelhasznaloId_GondviseloId_IntezmenyId
CREATE INDEX NCI_Telefon_FelhasznaloId_GondviseloId_IntezmenyId
ON T_TELEFON(
   C_FELHASZNALOID
  ,C_GONDVISELOID
  ,C_INTEZMENYID
)
INCLUDE(C_TELEFONSZAM,C_TANEVID)
WHERE TOROLT='F'
WITH (FILLFACTOR = 80)
GO
  