mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-15 10:04:44 +00:00
archive old stored procs/functions
This commit is contained in:
9
archive/sql-stored-procs-functions/03-crud/05-Breweries/USP_GetBreweryById.sql
vendored
Normal file
9
archive/sql-stored-procs-functions/03-crud/05-Breweries/USP_GetBreweryById.sql
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
CREATE OR ALTER PROCEDURE dbo.USP_GetBreweryById @BreweryPostID UNIQUEIDENTIFIER
|
||||
AS
|
||||
BEGIN
|
||||
SELECT *
|
||||
FROM BreweryPost bp
|
||||
INNER JOIN BreweryPostLocation bpl
|
||||
ON bp.BreweryPostID = bpl.BreweryPostID
|
||||
WHERE bp.BreweryPostID = @BreweryPostID;
|
||||
END
|
||||
Reference in New Issue
Block a user