mirror of
https://github.com/bitwarden/server.git
synced 2024-12-24 17:17:40 +01:00
17 lines
322 B
MySQL
17 lines
322 B
MySQL
|
CREATE OR ALTER PROCEDURE [dbo].[Transaction_ReadByOrganizationId]
|
||
|
@OrganizationId UNIQUEIDENTIFIER,
|
||
|
@Limit INT
|
||
|
AS
|
||
|
BEGIN
|
||
|
SET NOCOUNT ON
|
||
|
|
||
|
SELECT
|
||
|
TOP (@Limit) *
|
||
|
FROM
|
||
|
[dbo].[TransactionView]
|
||
|
WHERE
|
||
|
[OrganizationId] = @OrganizationId
|
||
|
ORDER BY
|
||
|
[CreationDate] DESC
|
||
|
END
|