From 350fcebb50ce2fd5edbfc3b8710f39c4dc062822 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Mon, 6 Aug 2018 14:27:30 -1000 Subject: [PATCH] added another sql command --- Useful-SQL-commands.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Useful-SQL-commands.md b/Useful-SQL-commands.md index 1b71b2e..6b058fb 100644 --- a/Useful-SQL-commands.md +++ b/Useful-SQL-commands.md @@ -1,2 +1,5 @@ View which titles have at least 1 rank applied to it: -* SELECT gwtitles.titlename FROM gwtitles WHERE titlenameid IN (SELECT titlenameid FROM gwsubtitles) ORDER BY titlename ASC; \ No newline at end of file +* SELECT gwtitles.titlename FROM gwtitles WHERE titlenameid IN (SELECT titlenameid FROM gwsubtitles) ORDER BY titlename ASC; + +Get the maximum entered sub-title rank: +* SELECT MAX(strank) FROM gwsubtitles WHERE titlenameid = ?; \ No newline at end of file