Update stored procs/udf and update docker config

This commit is contained in:
Aaron Po
2025-11-13 10:18:03 +00:00
parent a200164609
commit b86607e37a
16 changed files with 991 additions and 337 deletions

View File

@@ -0,0 +1,19 @@
USE Biergarten;
GO
CREATE OR ALTER FUNCTION dbo.UDF_GetCountryIdByCode
(
@CountryCode NVARCHAR(2)
)
RETURNS UNIQUEIDENTIFIER
AS
BEGIN
DECLARE @CountryId UNIQUEIDENTIFIER;
SELECT @CountryId = CountryID
FROM dbo.Country
WHERE ISO3616_1 = @CountryCode;
RETURN @CountryId;
END;
GO