Urgent: two authors for the same book

I have a database with three tables: books, authors and aux.
The books table stores the names of the books. The authors table stores the name of the authors. Table aux takes the id of the other two. I did this for the case of the same book has two or more authors
The query I did was the following:
SELECT authores.author, books.title
FROM aux, authors, books
WHERE aux.books_id = books.id AND aux.authors_id = authors.id
ORDER BY books.title ASC
How do I show the two authors for the same book?
For now, I'm using a simple table:
<table border="1" cellpadding="1" cellspacing="1">
  <tr>
    <td>author</td>
    <td>title</td>
  </tr>
  <?php do { ?>
    <tr>
      <td><?php echo $row_rsBooks['author']; ?></td>
      <td><?php echo $row_rsBooks['title']; ?></td>
    </tr>
    <?php } while ($row_rsBooks = mysql_fetch_assoc($rsBooks)); ?>
</table>
Thus, the table presents two results for the same book, instead of uniting the two authors of the same book.

Thanks for the reply.
In the meantime, got what I wanted. The expression looks like this:
SELECT livros.titulo, GROUP_CONCAT(autores.autor SEPARATOR ',') AS Autores
FROM livros INNER JOIN aux ON aux.livros_id = livros.id INNER JOIN autores ON aux.autores_id = autores.id
GROUP BY livros.titulo

Similar Messages

  • Use two indicators for the same variable in two different VIs

    hello, I want to use two indicators for the same variable in two different VIs running at the same time
    should I use global variables?? I want to avoid because I have lot of variables and it would takes too much memory,I tried with this code but the value of the second indicator is not updated 
    I tried to use the queue and it works but the problem is as i said previously that i have many variables shoud I use a queue for each one??
    what should I do?
    thank you in advance
    cordialy
    Attachments:
    projet.zip ‏13 KB

    CrisSTine01 wrote:
    hello, I want to use two indicators for the same variable in two different VIs running at the same time
    I'm a huge fan of User Events to send updates to GUIs from who knows where.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Can we create two POs for the same 3rd party Sales Order?

    Hi MM experts,
    Issue: Can we create two POs for the same 3rd party Sales Order
    In Third party purchase process, first sales order created with a spl. item category  and it creates the PR automatically with the Sales order material and Qty and this PR converted PO.
    They got a pur.req. for sale order on same item for same delevery date. They did not get any warning msg. saying that a PO was prviously placed against this sale order.
    How it is possible that we were able to place another PO? concern is that second PO was palced against SO which was already used & completed. they were able to place 2 POs for the same customer same delevery date. How it is possible?
    If anyone face the same issue, please let me know if you have any answer to this questions.
    Thanks in advance.
    Suresh.

    Suresh,
    It is hard for me to give you a definitive answer since you have created a customized solution.
    How it is possible that we were able to place another PO? concern is that second PO was palced against SO which was already used & completed. they were able to place 2 POs for the same customer same delevery date. How it is possible?
    Normally, the system will not do this.  A third party PR or PO will be 'account assigned' to the Sales order.  SAP standard 3rd party will not create additional purchase reqs unless there has been manual intervention.  Try searching for changes in the Sales order and changes in the original purchase order.  They may give you a clue.
    I believe the normal Item category for third party SO is TAS (I am working from memory here, I am not in front of a system).  I don't know what ZTAG does.  I confess I am not an SD expert.  You might also want to post your question in an SD forum.
    You mention two custom applications, ZMMPLAN and ZSTPMP.  These somehow have functionality that is used to help you convert your PRs to POs.  If I were in your position, I believe I would also look at these applications for clues to how they might be contributing to your problem.  And please don't send me details about these apps.  I will not comment on custom code in this forum.
    Sorry I can't be of more help.
    Rgds,
    DB49

  • TS1424 i bought a book and itunes charged me three times for the same book, how do i submit a claim to get the money back and where do i find then form

    i bought a book and itunes charged me three times for the same book, how do i submit a claim to get the money back and where do i find then form

    Welcome to the Apple community.
    Select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History.

  • Post a witholding tax in two countries for the same vendor

    Hi all,
    I would like to know if there is any way (standar not development) to post a witholding tax in two countries for the same vendor belonging to a company code. (extended witholding tax scene).
    System always display extended witholding indicators belonging to the country of the company code.
    Thanks in advance.
    Emilio Rozalén
    SAP FI Consultant.

    Hi B.Rama,
    I think so, but Do you know the meaning of country witholding field in vendor master?.
    Besides you can find this field in customizing, reports but I dont know its functionality.
    Thanks and regards
    Emilio Rozalé

  • HT5622 i downloaded a book.  howver it did not go through the 1st time - yet  I was billed for the same book several times

    i used Itunes to download a book
    it did not download the 1st several times....and I did not get it
    it finally went thru
    but I was billed several times for the same book
    how can I get the duplicate charges for the same book reversed?

    Try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via the Store > View Account menu option and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that book and use the 'Report a Problem' link and fill in details about the problem (iTunes support should reply within, I think, about 24 hours).
    If the 'report a problem' link doesn't work (it's been taking some people to this site on a browser instead of showing a form in iTunes) then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption.

  • I was charged two times for the same game

    I was charged two times for the same game...how can I get my money back?  I even was emailed a receipt for them both...no one noticed?  Please help me.

    How to report an issue with Your iTunes Store purchase

  • Why are there two prices for the same audiobook?

    Why are there two prices for the same audiobook in iTunes?

    May be one is abridged and one unabridged ? or they just may want to get the suckers that think the more expensive one is better ... haha.

  • Two infopackages for the same DS-- IS combination initialised

    Hello Friends,
    Can we have two infopackages for the same DS-->IS combination initialised with the same selections conditions and init requests. I have seen this in my client system. How can this be achieved.
    Thanks for your help.
    ---Simmi

    That is not possible.
    Are you sure Inits were done for same selections ???

  • HT4059 I was charged twice for the same book. I downloaded it onto 2 devices with the same account. How do I report this?

    I was charged twice for the same book. I downloaded it onto 2 devices with the same account. How do I report this?

    Review your purchase history to ensure that you were charged twice.
    http://support.apple.com/kb/HT2727
    If you believe that you were incorrectly charged, contact iTunes support here:
    http://www.apple.com/support/itunes/contact/

  • Two work on the same book?

    I have been working on a family album for a while, but I just found out my sister is doing the same. we both have iMacs with iPhoto 09 but she lives in VA and I live in MI. We were talking about working on a book together in iPhoto, but I do not know how to set the book up so we can both work on it or to send each other the book so we can both work on it. What would be the best way we could both work on the same book?

    There is not a way - iPhoto is not a multiuser program and the book does not really exist - it is just entries in the iPhoto database - the only way to move a book is to move the entire library - you may want to consider creating a special library for each new book for ease of archiving - see Old Toad's tutorial #9a - http://web.me.com/toad.hall/ToadsTutorials/No._9a.html - but even then the library is fairly large and even if yo sent here a copy of it there is not way to merge your efforts - you would have to send it to her, have her work for a while and send it back for you to work on - not really a solution at all
    One of you can work on pages (either in iPhoto or in another program - pagemaker, pages, word, etc) and when a page is complete do a print using the PDF option send pdf to iPhoto option and then send each page image to the other for inclusion (but they will be page images not iPhoto book pages that can be further edited as pages only as a total image
    LN

  • Release By two Users for the  same Value

    Friends
    I have an existing PO rel. strategy where the range is 1-10000USD  . This is currently released by one user. Now due to business requirement  client wants to introduce one additional user to release the PO as well for the same  value range.
    In a nutshell for the value range  USD 1-10000 , There will be two approvers with two different rel. codes. How do I achieve this?
    Thanks
    samuel

    Dear,
    Check this : Release Procudure for Purchase Order
    Hope Helpful to your requirement.
    Regards,
    Syed Hussain.

  • Two infosources for the same datasource.

    Hello,
    I have a doubt and i need some help with it.
    I have a datasource and two infosources conected with that datasource.
    I also have two ODS and each one is filled with one infosource and ODS are equal.
    I fill ODS A with field type= A and ODS B with field type=B.
    Datasource has delta behaviour.
    I created two infopackages, with init delta, and i put diferent values for field type in selection fields in both infopackages.
    First, it's this possible? I'm having a error, first extraction runs well but when i execute the second infopackage, i 've an error, saying that the the first request must be set first.
    Any help?
    Thanks
    Maria

    hi maria ,
      U can fill two ODS from the same datasource by using two Infopackages ,
      in the scheduler screen u can do the necessary settings and trigger the infopackage.
    Regards ... Kumar Sarvepalli .... ///// Honor with points if helpful

  • Two tabs for the same page

    Hello,
    I have been spending the whole morning trying to find a solution for this problem but did not find any either by myself or parsing the forum messages.
    I am building an application with a two level tab for the navigation.
    Everything is fine as long as the pages referenced by the tabs have a different number.
    My problem is that i use the same dynamic page (let say 40) to be accessed through two different tabs.
    e.g Parent tab is labelled "Parent"
    Two other tabs are created linked to parent tab "Parent" and those are labelled "Action1" and Action2"
    Selecting "Action1" will result in rendering the page 40 with a parameter (let say page_type) set to the value 1.
    Selecting "Action2" will result in rendering the *same* page 40 with a parameter (let say page_type) set to the value 2.
    For the parent tab "Parent" let say that the default is to select "Action1"
    Is there any solution to implement that kind of behaviour?
    I have tried to create redirecting pages (empty page and a single branch) to achieve this but i always get stucked when trying to have page 40 displaying the proper tabs and parent tab.
    Thanks in advance for any help.
    Daniel

    Hi Andy,
    Thanks for your answer!
    Whilst it is fairly straightforward to create multiple tabs for the same page (this can be done through Shared Components, Tabs and click Add on the standard >>tabs bar, enter in any page number you like), the functionality of tabs does not provide the means to set item values. Additionally, as both tabs would be >>"current" for your page 40, once you've clicked on one, you can not click on the other.Yes this is exactly what i discover once my page 40 has been built.
    There may be ways to do what you need, but as tabs are really there for navigation purposes only, this may become rather complicated. What is the difference >>between Action1 and Action2? Can this be achieved in another way? Have you considered switching to lists for navigation (where you can set item values)?In fact, i can still duplicate this page and have a few changes within each new page. But as a matter of code design as both pages have around half in common, i wanted to share most of the items (build a single page) and then play for a few additional items with conditions encompassing the page type i have set before rendering the page.=> Most items in common, a few others whose display is conditionnal. For the end user, it looks like two different pages because in their business process the "Action1" and "Action2" are clearly different.
    I use lists in this application on the home page to reach most of the application pages but while some users prefer to use the links on the home page and go back to home page, other would like to use the tabs and a number of them use both navigation mechanisms.
    Sorry if it is not quite clear (english is not my mother tongue).
    Regards,
    Daniel

  • Two Tracks for the same Runtime System?

    Hello,
    can you please tell me if it is allowed to connect two tracks to the same runtime systems?
    We have already a track connected to our systems. Now we have created a new track to deliver different content to those systems. We wanted to connect the new track to the same runtime systems. Our basis team told me that a where-used message came up that told them "The following runtime systems are already used elsewhere in the CMS domain".
    Can you tell us if we will get problems because of this?
    Thanks in advance,
    Br,
      Michael

    Hello again,
    ok now, thats something completely different CRM modification is always special.
    To be honest i cannot tell for sure what will happen. As far as i know the default deploy strategy of NWDI is "deploy any version" which means NWDI will order SDM to just deploy not regarding any SDM Version (you are on a 7.0x System right?)
    So it should be possible if everything else, excelt those 2 DCs is the same things should work. But if not the last deplyoed version of the shared DCS will be active. Which might lead to problems then.
    As far as you described, the setup is as the CRM modification guides mentioned.
    My first thought is that you are not forced to use CUSTCRMPRJ as SC name for the projects as far as I know. OS maybe the leanest thing would be to just use CUSTCRMPRJ_light (.o)) for the second track.
    Hmmm not sure if this is a good idea or thought to the end. I don't have the CRM modifications guide at hand at the moment. But I guess there was a part where something was mentioned similar to this.
    After all I have to say:Sorry. I can't give you solid, reliable tip/advice for this case. Maybe my thought will help you.
    Or maybe someone else knows better.
    Have a good time
    Jan

Maybe you are looking for

  • Access to original message inside proxy service

    I have proxy service (serviceType=WSDL Web Service) which is available to endpoint to customer and I want to save incoming message to file on disk. However I want to persist whole incoming message exectly (at byte level) as it was sent by sender (so

  • Putting clips of a real movie into my own movie

    I want to create an iMovie using pictures and videos of my own but I would also like to add some clips from a real movie. I have the movie on DVD and VHS. Is it possible to put clips of this real movie into my home movie?

  • BW and EP Integration using SNEAK ABAP & JAVA

    Hi, I have NetWeaver 2004s - ABAP (SP6) installed along with NetWeaver 2004 - JAVA (SP15). Is it possible to execute a BI query in the web browser using these sneak versions. I get an error that an iView is missing - com.sap.ip.bi.bex I have read a f

  • ORA-00980 during ValidStruct

    Hi Oracle-experts! After ValidStruct job I get the following errors: BR0301E SQL error -980 at location stats_tab_validate-2, SQL statement:                   'ANALYZE TABLE "SYS"."STREAMS$_APPLY_SPILL_MSGS_PART" VALIDATE STRUCTURE CASCADE ONLINE'  O

  • Business Place and Business Area issue and

    Hi, We have made some modifications to the postings at time of goods receipt. These postings are ok but some of the postings are missing the content for Business area and business place after posting Goods Receipt. The IMG has been checked for missin