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
12
decomp/schema/RustyHearts/procs/up_get_all_guild_count.sql
Normal file
12
decomp/schema/RustyHearts/procs/up_get_all_guild_count.sql
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
CREATE PROCEDURE [dbo].[up_get_all_guild_count]
|
||||
AS
|
||||
BEGIN
|
||||
|
||||
SET NOCOUNT ON
|
||||
set transaction isolation level read uncommitted
|
||||
|
||||
--SELECT count(*) COUNT FROM GuildTable WHERE [block_type] = 0 --and [server] = @server
|
||||
select count(*) guild_count FROM
|
||||
( select G.[guild_id] from GuildMemberTable M INNER JOIN GuildTable G ON G.[guild_id]=M.[guild_id] AND G.[block_type]=0 GROUP BY G.guild_id ) A;
|
||||
|
||||
END
|
||||
Loading…
Add table
Add a link
Reference in a new issue