From 1efaef311ceb7635e0b009a5c399174324812a50 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Fri, 17 Aug 2018 16:36:24 -1000 Subject: [PATCH] Update page 'Useful SQL commands' --- Useful-SQL-commands.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Useful-SQL-commands.md b/Useful-SQL-commands.md index ef92f23..e590dcb 100644 --- a/Useful-SQL-commands.md +++ b/Useful-SQL-commands.md @@ -24,4 +24,5 @@ Get maxed out account titles first, sorted by rank, THEN by percentage over max * to get the unmaxed account titles sorted, just flip the > to < count maxed out titles from characters and accounts -* Character: SELECT COUNT(****) FROM gwcharstats WHERE percent >= 100 AND titlenameid != 27 AND charid = 20; \ No newline at end of file +* Character: SELECT COUNT(\*) FROM gwcharstats WHERE percent >= 100 AND titlenameid != 27 AND charid = 20 AND accid = 1 AND userid = 1; +* Account: SELECT COUNT(\*) FROM gwaccstats WHERE percent >= 100 AND accid = 1 AND userid = 1; \ No newline at end of file