Skip to content

The Author Sorting Problem #6

@JaimieMurdock

Description

@JaimieMurdock

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions