45 lines
1.2 KiB
Transact-SQL
45 lines
1.2 KiB
Transact-SQL
--Migration
|
|
DROP INDEX IF EXISTS NCI_TanuloMulasztas_OraTanuloiId_TanitasiOrakId_Tipus_IntezmenyId_TanevId ON T_TANULOMULASZTAS
|
|
GO
|
|
|
|
IF NOT EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'NCI_TanuloMulasztas_OraTanuloiId_TanitasiOrakId_Tipus_IntezmenyId_TanevId') BEGIN
|
|
CREATE NONCLUSTERED INDEX NCI_TanuloMulasztas_OraTanuloiId_TanitasiOrakId_Tipus_IntezmenyId_TanevId
|
|
ON T_TANULOMULASZTAS (
|
|
C_ORATANULOIID
|
|
,C_TANITASIORAKID
|
|
,C_TIPUS
|
|
,C_INTEZMENYID
|
|
,C_TANEVID
|
|
)
|
|
INCLUDE(
|
|
C_KESESPERCBEN
|
|
,C_IGAZOLASTIPUSA
|
|
,C_IGAZOLT
|
|
)
|
|
WHERE TOROLT = 'F'
|
|
WITH (FILLFACTOR = 80)
|
|
END
|
|
GO
|
|
|
|
DROP INDEX IF EXISTS NCI_TanuloMulasztas_TanitasiOrakId_IntezmenyId_TanevId_OraTanuloiId ON T_TANULOMULASZTAS
|
|
GO
|
|
|
|
IF NOT EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'NCI_TanuloMulasztas_TanitasiOrakId_IntezmenyId_TanevId_OraTanuloiId') BEGIN
|
|
CREATE NONCLUSTERED INDEX NCI_TanuloMulasztas_TanitasiOrakId_IntezmenyId_TanevId_OraTanuloiId
|
|
ON T_TANULOMULASZTAS (
|
|
C_TANITASIORAKID
|
|
,C_INTEZMENYID
|
|
,C_TANEVID
|
|
,C_ORATANULOIID
|
|
)
|
|
INCLUDE(
|
|
C_KESESPERCBEN
|
|
,C_IGAZOLASTIPUSA
|
|
,C_TIPUS
|
|
,C_IGAZOLT
|
|
)
|
|
WHERE TOROLT = 'F'
|
|
WITH (FILLFACTOR = 80)
|
|
END
|
|
GO
|
|
|