Files
the-biergarten-app/archive/sql-stored-procs-functions/03-crud/05-Breweries/USP_GetBreweryById.sql
2026-08-20 21:31:38 -04:00

9 lines
287 B
SQL
Vendored

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