Given the following schema,
Article (issueID, articleID, author, title)
Citation (articleID, issueID, citedArticleID, citedIssueID)
WordAppears (wordID, issueID, articleID, position)
WordIs (wordID, wordText)
Issue (issueID, date, howManyDistributed),
I need to write a SQL statement to find the most-cited article(s) in the newspaper’s history, aka find the max number of instances of any particular citedArticleID.
How do chain max(), count(), and groupby (or any other methods, not restricted to these) to achieve this?