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
14
decomp/schema/RustyHearts/procs/up_read_all_guild.sql
Normal file
14
decomp/schema/RustyHearts/procs/up_read_all_guild.sql
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
CREATE PROCEDURE [dbo].[up_read_all_guild]
|
||||
@server int
|
||||
|
||||
as
|
||||
begin
|
||||
|
||||
set nocount on
|
||||
set transaction isolation level read uncommitted
|
||||
|
||||
--select guild_id, room_id from GuildTable where [group_id] = @server and [block_type] = 0
|
||||
SELECT T.[guild_id], T.[room_id] 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] HAVING count(M.[guild_id])>0 ) AS C ON C.[guild_id]=T.[guild_id] AND T.[group_id]=@server AND T.[block_type]=0
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue