1
0
mirror of https://github.com/bitwarden/server synced 2025-12-31 23:53:17 +00:00
Files
server/src/Sql/dbo/Stored Procedures/Organization_ReadByProviderId.sql
Oscar Hinton 61307e11b0 Provider: Initial db structure (#1309)
* Initial db structure
2021-05-20 14:39:26 +02:00

16 lines
326 B
Transact-SQL

CREATE PROCEDURE [dbo].[Organization_ReadByProviderId]
@ProviderId UNIQUEIDENTIFIER
AS
BEGIN
SET NOCOUNT ON
SELECT
O.*
FROM
[dbo].[OrganizationView] O
INNER JOIN
[dbo].[ProviderOrganization] PO ON O.[Id] = PO.[OrganizationId]
WHERE
PO.[ProviderId] = @ProviderId
END