init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,31 @@
|
|||
/****** Script for SelectTopNRows command from SSMS ******/
|
||||
-- =============================================
|
||||
-- Description: sp_GetTanuloCsoport by tanuloId, osztalyID es Datum
|
||||
-- =============================================
|
||||
SET ANSI_NULLS ON
|
||||
GO
|
||||
SET QUOTED_IDENTIFIER ON
|
||||
GO
|
||||
|
||||
|
||||
DROP PROCEDURE IF EXISTS [dbo].[sp_GetTanuloOsztalyCsoport]
|
||||
GO
|
||||
|
||||
|
||||
CREATE PROCEDURE [dbo].[sp_GetTanuloOsztalyCsoport]
|
||||
@tanuloId INT,
|
||||
@osztalyId INT,
|
||||
@datum DATETIME
|
||||
AS
|
||||
BEGIN
|
||||
-- SET NOCOUNT ON added to prevent extra result sets from interfering with SELECT statements.
|
||||
SET NOCOUNT ON;
|
||||
SELECT *
|
||||
FROM T_TANULOCSOPORT_OSSZES
|
||||
WHERE C_TANULOID = @tanuloId AND (@osztalyId IS NULL OR C_OSZTALYCSOPORTID = @osztalyId) AND TOROLT = 'F'
|
||||
AND (C_BELEPESDATUM < ISNULL(@datum,GetDate()) AND (C_KILEPESDATUM IS NULL OR C_KILEPESDATUM > ISNULL(@datum,GetDate())))
|
||||
|
||||
|
||||
END
|
||||
GO
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue