Hi all
I'm trying to make up records of publications, in the following format:
[author1] [author2] [author3] [title] [journal]
So I've created 3 tables:
Papers
paper_id (PK)
title
journal
Authors
author_id (PK)
surname
Paper_Author
paper_id (PK)
author_id (PK)
rank
When I run the query
SELECT surname, title, journal
FROM authors NATURAL JOIN paper_author NATURAL JOIN papers
I end up with multiple rows of the same paper, for each of the multiple authors of that paper.
How can I get 1 row per paper, which lists its multiple authors?
Thanks heaps
cobberas