decomp DBCServer_Release and inspect/document database
This commit is contained in:
parent
4b267cbe05
commit
7834b98bf0
28222 changed files with 843300 additions and 144 deletions
19
decomp/schema/RustyHearts/procs/up_get_guild_total_count.sql
Normal file
19
decomp/schema/RustyHearts/procs/up_get_guild_total_count.sql
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
CREATE PROCEDURE [dbo].[up_get_guild_total_count]
|
||||
(
|
||||
@server SMALLINT
|
||||
)
|
||||
AS
|
||||
BEGIN
|
||||
|
||||
SET NOCOUNT ON
|
||||
set transaction isolation level read uncommitted
|
||||
|
||||
SELECT count(T.[guild_id]) AS total_cnt FROM GuildTable AS T WITH (NOLOCK)
|
||||
INNER JOIN
|
||||
(
|
||||
SELECT M.[guild_id], count(M.[guild_id]) AS member_cnt
|
||||
FROM GuildMemberTable AS M WITH (NOLOCK) GROUP BY M.[guild_id]
|
||||
) AS C
|
||||
ON C.[guild_id]=T.[guild_id] AND T.[server]=@server AND T.[block_type]=0
|
||||
|
||||
END
|
||||
Loading…
Add table
Add a link
Reference in a new issue