﻿--Migration
DROP INDEX IF EXISTS [NCI_TanitasiOra_IntezmenyId_TanevId] ON [dbo].[T_TANITASIORA]
GO

CREATE NONCLUSTERED INDEX [NCI_TanitasiOra_IntezmenyId_TanevId] ON [dbo].[T_TANITASIORA]
(
	[C_INTEZMENYID] ASC,
	[C_TANEVID] ASC
)
INCLUDE([C_MEGTARTOTT],[C_ORAKEZDETE],[C_SORSZAMOZANDO],[C_TANTARGYID],[C_TANARID],[C_OSZTALYCSOPORTID],[C_ORAEVESSORSZAMA],[C_ORARENDIORAGROUPID]) 
WHERE ([TOROLT]='F')
WITH (PAD_INDEX = ON, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 100) ON [PRIMARY]
GO

DROP INDEX IF EXISTS [NCI_DKT_Feladat_IntezmenyId_TanevId_FeladatTipusId] ON [dbo].[T_DKT_FELADAT]
GO

CREATE NONCLUSTERED INDEX [NCI_DKT_Feladat_IntezmenyId_TanevId_FeladatTipusId] ON [dbo].[T_DKT_FELADAT]
(
	[C_INTEZMENYID] ASC,
	[C_TANEVID] ASC,
	[C_FELADATTIPUSID] ASC
)
INCLUDE([C_DATUM],[C_BEADASHATARIDO],[C_IDOPONT],[C_LATHATOSAGIDOPONT],[C_ORASZAM],[C_TANITASIORAID],[C_TANTARGYID],[C_OSZTALYCSOPORTID],[C_ALKALMAZOTTID])
WHERE (TOROLT = 'F')
WITH (PAD_INDEX = ON, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 100) ON [PRIMARY]
GO
