The Author Sorting Problem
The Schema
citation_authors
citation_id INT
author_id INT
rank TINYINT
authors
author_id INT
firstname VARCHAR
lastname VARCHAR
...
The Abstract Query
SELECT *
FROM citation
ORDER BY citation.year DESC, authors ASC
What does ORDER BY authors ASC mean?
ORDER BY author.rank, author.lastname, author.firstname ASC
PROBLEM: must be recursive, gives an order of citation objects, not author objects
SOLUTION: something with GROUP BY authors_citation.cit_id???
PROBLEM: objects may have asymmetrical number of ranks. if same order does not exist, citation with fewer authors is ranked above one with more, if all authors for paper with fewer authors shares all authors
SOLUTION: ???
Possible Solutions
- create computed column that links strings together by using a recursive query. Sort based on this column. Could be computationally inefficient.
The Author Sorting Problem
The Schema
citation_authors
citation_id INT
author_id INT
rank TINYINT
authors
author_id INT
firstname VARCHAR
lastname VARCHAR
...
The Abstract Query
What does
ORDER BY authors ASCmean?PROBLEM: must be recursive, gives an order of citation objects, not author objects
SOLUTION: something with
GROUP BY authors_citation.cit_id???PROBLEM: objects may have asymmetrical number of ranks. if same order does not exist, citation with fewer authors is ranked above one with more, if all authors for paper with fewer authors shares all authors
SOLUTION: ???
Possible Solutions