> From: Stuart Kidd [mailto:[EMAIL PROTECTED]
> I've got a query whereby I am getting a list of all authors (table:
> tbl_020authorDetails) in my database. I am cross referencing against
> all the articles (tbl_020articleDetails) and only displaying
> the authors
> who have an article published (articleAuthenticated = 1).
> The problem I am coming across is that when an author has two articles
> published it is displaying their name twice in my list and of course I
> only want it outputted the once.
How about...
SELECT
DISTINCT
TBL1.tbl_020articleDetails.authorID,
TBL1.authorFirstName,
TBL1.authorSurname
FROM
tbl_020authorDetails TBL1
INNER JOIN tbl_020articleDetails TBL2 ON (TBL1.authorID =
TBL2.authorID)
WHERE
TBL2.articleAuthenticated = 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - New Atlanta
http://www.newatlanta.com
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186380
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54