Access

E

Eric

When designing a query to give a list of authors from
books table, how do I arrange it so each author is only
shown once, even though they may appear several times in
the table?
 
M

Michael Hopwood

What you should have is two tables:

Books Table
***********
AuthorID
Title
ISBN

Authors Table
*************
AuthorID
Surname
FirstNames

And link the two together on the "AuthorID" field, but it's obvious you have
not done this, so use SQL like this:

SELECT DISTINCT Author
FROM MyBadlyDesignedTable;

You can add an "ORDER BY" clause to it as well if you like (and you have
Surname in a seperate field or "Surname, FirstNmes")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top