49 lines
1.3 KiB
Transact-SQL
49 lines
1.3 KiB
Transact-SQL
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
|
|
IF OBJECT_ID('[dbo].[sp_GetErettsegiEredmenyekReszletekData]') IS NOT NULL
|
|
BEGIN
|
|
DROP PROCEDURE [dbo].[sp_GetErettsegiEredmenyekReszletekData]
|
|
END
|
|
GO
|
|
|
|
-- =============================================
|
|
-- Description: <Előszedjük a tanuló érettségi eredményeit részletesen>
|
|
-- =============================================
|
|
CREATE PROCEDURE [dbo].[sp_GetErettsegiEredmenyekReszletekData]
|
|
@pIntezmenyId INT
|
|
,@pTanevId INT
|
|
,@pTanuloId INT
|
|
|
|
AS
|
|
BEGIN
|
|
|
|
-- SET NOCOUNT ON added to prevent extra result sets from
|
|
-- interfering with SELECT statements.
|
|
SET NOCOUNT ON;
|
|
|
|
SELECT
|
|
ErettsegiEredmeny.ID ID
|
|
,ErettsegiEredmeny.C_ERETTSEGITANTARGY ErettsegiTantargyId
|
|
,ErettsegiEredmeny.C_ERETTSEGISZINT ErettsegiSzintId
|
|
,ErettsegiEredmeny.C_ERETTSEGITIPUS ErettsegiTipusId
|
|
,ErettsegiEredmeny.C_IRASBELIPONTSZAM IrasbeliPontszam
|
|
,ErettsegiEredmeny.C_SZOBELIPONTSZAM SzobeliPontszam
|
|
,ErettsegiEredmeny.C_GYAKORLATPONTSZAM GyakorlatiPontszam
|
|
,ErettsegiEredmeny.C_MEGJEGYZES Megjegyzes
|
|
,ErettsegiEredmeny.C_OSSZPONTSZAM OsszPontszam
|
|
FROM
|
|
T_ERETTSEGIEREDMENY_OSSZES ErettsegiEredmeny
|
|
WHERE
|
|
ErettsegiEredmeny.C_TANULOID = @pTanuloId
|
|
AND ErettsegiEredmeny.C_INTEZMENYID = @pIntezmenyId
|
|
AND ErettsegiEredmeny.C_TANEVID = @pTanevId
|
|
AND ErettsegiEredmeny.TOROLT = 'F'
|
|
|
|
END
|
|
|
|
|
|
GO
|
|
|