From 1fbf07f21677a712fdf7b6c502bdbd50926afe7f Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Mon, 20 Aug 2018 15:21:32 -1000 Subject: [PATCH] integrated account and char stats --- Useful-SQL-commands.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Useful-SQL-commands.md b/Useful-SQL-commands.md index e590dcb..4402883 100644 --- a/Useful-SQL-commands.md +++ b/Useful-SQL-commands.md @@ -24,5 +24,4 @@ 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 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 +* SELECT COUNT(\*) FROM gwstats WHERE charid IN (0, ?) AND gwamm = 0 AND percent >= 100 AND accid = ? AND userid = ? \ No newline at end of file