Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8767381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:47:46+00:00 2026-06-13T16:47:46+00:00

this is a revised question from previous one. I decided to open a new

  • 0

this is a revised question from previous one. I decided to open a new question since the scope has changed.

This is what I want to achieve.

List the last name of the author(s) of the book in an “Author” column, the last name of the author to be listed first, followed (after a comma) by that of the author to be listed second if any; and if there is a third author, put it after the second author’s name. The order of the author of a book is listed in the au_ord column (1=First Author, 2=Second Author, 3=Third Author).

Any idea how to achieve this in MYSQL output?

enter image description here

Those are the source table. The desired output is something like this:

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:47:47+00:00Added an answer on June 13, 2026 at 4:47 pm

    All you need is a GROUP_CONCAT function.

    SELECT title_id, GROUP_CONCAT(au_lname ORDER BY au_ord)
    FROM table
    GROUP BY title_id
    

    The GROUP BY clause groups all individual (distinct) titles, and the GROUP_CONCAT on it concatenates all the authors of it. This would list all the titles and their corresponding authors. If au_lname is from another table than from title_id table, then you will have to use appropriate joins. I am not sure what are the table names from your question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is the revised version of my previous question Paralleling trading software The code
Okay this is a revised question from earlier today, I have included code to
REVISED QUESTION : We have tracked this down to a custom add to cart
UPDATE: Solved. Thanks BusyMark! EDIT: This is revised based on the answer below from
@saverio was successful on answer this database query question on Tagging from Scratch: the
Sorry, this was a bad question that I revised to make it less localized.
As Rie819 has pointed out, this is a duplicate question. However, the other post
REVISED FROM OLD QUESTION- NOW USING DIFFERENT WAY FORWARD I am building a chatbox
My question is essentially the same as this one here . I'm using AnkhSVN
I am reposting this question with revised code that use more of jQuery. Here

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.