-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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 ASCWhat does ORDER BY authors ASC mean?
ORDER BY author.rank, author.lastname, author.firstname ASCPROBLEM: 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.
Metadata
Metadata
Assignees
Labels
No labels