Habilis
New member
Hiya all.
Let's play a SQL game.
You from your Experience tell me what Data from SQL you would need to have.
I will provide the SQL code of the query to extract that information.
(A lot of fun game)
For example :
You : "I want to spy on my Event GMs and Higher GMs to control the abuse of @commands"
Habilis :
SELECT
ac.`atcommand_date`
,ac.`account_id`
,ac.`char_id`
,ac.`char_name`
,l.`group_id`
,ac.`map`
,ac.`command`
FROM `atcommandlog` ac
LEFT JOIN `login` l ON l.`account_id` = ac.`account_id`
WHERE
l.`group_id` >= 30
AND ac.`command` NOT LIKE "@emotion%"
AND ac.`command` NOT LIKE "@reload%"
AND ac.`command` NOT LIKE "@refresh%"
AND ac.`command` NOT LIKE "@go %"
AND ac.`command` NOT LIKE "@jump%"
AND ac.`command` NOT LIKE "@warp%"
ORDER BY ac.`atcommand_id` DESC
LIMIT 200;
Selects :
WHERE `command` LIKE "@item%"
Don't be afraid to ask lika anything Habilis's level of knowlege in SQL is simply GURU
Queries of any complexity and any difficulty :B):
Let's play
Let's play a SQL game.
You from your Experience tell me what Data from SQL you would need to have.
I will provide the SQL code of the query to extract that information.
(A lot of fun game)
For example :
You : "I want to spy on my Event GMs and Higher GMs to control the abuse of @commands"
Habilis :
SELECT
ac.`atcommand_date`
,ac.`account_id`
,ac.`char_id`
,ac.`char_name`
,l.`group_id`
,ac.`map`
,ac.`command`
FROM `atcommandlog` ac
LEFT JOIN `login` l ON l.`account_id` = ac.`account_id`
WHERE
l.`group_id` >= 30
AND ac.`command` NOT LIKE "@emotion%"
AND ac.`command` NOT LIKE "@reload%"
AND ac.`command` NOT LIKE "@refresh%"
AND ac.`command` NOT LIKE "@go %"
AND ac.`command` NOT LIKE "@jump%"
AND ac.`command` NOT LIKE "@warp%"
ORDER BY ac.`atcommand_id` DESC
LIMIT 200;
Selects :
- DateTime (when copmmand was executed)
- Account & Char Ids (If not needed remove them)
- Char name
- GM level (if not needed remove it)
- map on which command was executed
- command
- Extracts 200 last @commands executed
- Extracts only for GM of 30 level and above (No normal players)
- Ignores commans (@Emotion, @reload, @refresh, @go, @jump, @warp)
WHERE `command` LIKE "@item%"
Don't be afraid to ask lika anything Habilis's level of knowlege in SQL is simply GURU
Queries of any complexity and any difficulty :B):
Let's play
Last edited by a moderator: