Pessoal, um há algum tempo fiz uma limpa no meu servidor, mais foi "mal feita" e sobraram algumas coisas que não eram para estar lá.

O que fiz?

Deletei contas inativas, porém, os dados das contas ficam armazenados em 4 tabelas e após ter deletado os dados da tabela MEMB_INFO não tinha mais como tirar base para o resto.

Para isso criei as querys abaixo:

Código:
-- DELETA TODOS OS LOGINS DA TABELA AccountCharacter VERIFICANDO SE O LOGIN EXISTE NA TABELA MEMB_INFO

DELETE
FROM AccountCharacter
WHERE NOT EXISTS 
        (SELECT memb___id
        FROM memb_info
        WHERE memb_info.memb___id = AccountCharacter.Id)

		
-- DELETA TODOS OS PERSONAGENS DA TABELA Character VERIFICANDO SE O LOGIN EXISTE NA TABELA MEMB_INFO

DELETE
FROM Character
WHERE NOT EXISTS 
        (SELECT memb___id
        FROM memb_info
        WHERE memb_info.memb___id = Character.AccountId)

		
-- DELETA TODOS OS BAÚS VERIFICANDO SE O LOGIN DE DETERMINADO BAÚ EXISTE NA TABELA MEMB_INFO
		
DELETE
FROM warehouse
WHERE NOT EXISTS 
        (SELECT memb___id
        FROM memb_info
        WHERE memb_info.memb___id = warehouse.AccountId)

-- DELETA TODOS OS BAÚS EXTRAS VERIFICANDO SE O LOGIN DE DETERMINADO BAÚ EXISTE NA TABELA MEMB_INFO
		
DELETE
FROM Extwarehouse
WHERE NOT EXISTS 
        (SELECT memb___id
        FROM memb_info
        WHERE memb_info.memb___id = Extwarehouse.AccountId)
Ai vocês perguntam, tá e daí, o que isso fará diferença?

Se uma outra pessoa, um novo jogador fizer um cadastro com o mesmo login de algum outro que você tenha deletado e esse outro tivesse itens no baú, personagens full, irá aparecer na conta desse novo jogador.

Bom, espero ajudar, visto que muita gente deve ter esse mesmo problema que eu tive.

Abraços