The core infrastructure backend (API, database, Docker, etc).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
446 B

CREATE OR ALTER PROCEDURE [dbo].[ProviderUser_ReadByOrganizationIdStatus]
@OrganizationId UNIQUEIDENTIFIER,
@Status TINYINT
AS
BEGIN
SET NOCOUNT ON
SELECT
PU.*
FROM
[dbo].[ProviderUserView] PU
INNER JOIN [dbo].[ProviderOrganizationView] as PO
ON PU.[ProviderId] = PO.[ProviderId]
WHERE
PO.[OrganizationId] = @OrganizationId
AND (@Status IS NULL OR PU.[Status] = @Status)
END
GO