| 123456789101112131415161718 |
- SET QUOTED_IDENTIFIER ON
- GO
- SET ANSI_NULLS ON
- GO
- CREATE FUNCTION [kalender].[quarter_name] (@Datum AS DATE)
- RETURNS VARCHAR(30)
- AS
- BEGIN
- RETURN convert(varchar, datepart(qq, @Datum)) + '. Q. ' + convert(varchar, year(@Datum))
- END
- GO
- SET QUOTED_IDENTIFIER OFF
- GO
- SET ANSI_NULLS OFF
- GO
- GO
|