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