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