Multiple authors for a Book

In the below example, the book titled 'Collapse of the Dollar' has multiple authors.
create table books
(surrId number(5),
book_id number(7),
isbn number (10),
title varchar2(100) ,
Author varchar2(100)
insert into books values (1, 457, 8478, 'Perilous Power' , 'Noam Chomsky');
insert into books values (2, 458, 2345, 'Macbeth' , 'Shakespeare');
insert into books values (3, 459, 6789, 'Collapse of the Dollar' , 'James Turk');
insert into books values (4, 459, 6789, 'Collapse of the Dollar' , 'John Rubino');
col title format a35
col author format a15
col title format a15
set lines 200
SQL> select * from books;
    SURRID    BOOK_ID       ISBN TITLE                               AUTHOR
         1        457       8478 Perilous Power                      Noam Chomsky
         2        458       2345 Macbeth                             Shakespeare
         3        459       6789 Collapse of the Dollar              James Turk
         4        459       6789 Collapse of the Dollar              John RubinoI need to write a query whiich returns book details but it should identify records (ie. Titles) with multiple authors and return the record with Authors separated with pipe ('|') like (no need of SURRID column )
expected output
      -- no need to retrieve surrogate ID
  BOOK_ID       ISBN TITLE                               AUTHOR
      457       8478 Perilous Power                      Noam Chomsky
      458       2345 Macbeth                             Shakespeare
      459       6789 Collapse of the Dollar              James Turk|John Rubino
      Related question on the above Table design (Create table DDL shown above):
A table storing book details can only be designed like above. Right ? I mean, the duplication of records for one book because of multiple authors cannot be avoided. Right ?
One wonders how Amazon has desined its books table :)

Hi,
Pete_Sg1 wrote:
I need to write a query whiich returns book details but it should identify records (ie. Titles) with multiple authors and return the record with Authors separated with pipe ('|') like (no need of SURRID column )Get there : {message:id=9360005}
and scroll down to "string aggregation"
Pete_Sg1 wrote:
A table storing book details can only be designed like above. Right ? I mean, the duplication of records for one book because of multiple authors cannot be avoided. Right ? I would have had a table for books, and a separate one for authors, and a 3rd one for their relations :
create table books
book_id integer,
title varchar2(100),
etc...
create table authors
author_id integer,
name varchar2(100),
etc...
create table book_authors
book_id integer,
author_id integer
);You could also have only 2 tables book and authors (with authors table having a fk column to book_id).
It would depends if the author is supposed to remain unique throught different books.
- The 3 tables model would allow a single update on author information to be automatically "propagated" to all book he participed in.
- The 2 tables model would allow to have different information for each participation of the author to different books (but would certainly "duplicate" part of the data about the author)
One can also have even more tables to totally avoid data "duplication".

Similar Messages

  • Looking for Authors for Apex Book:Packt Publishing

    Hi
    I am Tripti, the Author Agent for Packt Publishing. www.packtpub.com
    I manage author acquisition and relationships for the company.
    We are looking for authors for a book on ApEx 3.
    Please contact me at [email protected] for further details.
    Thanks
    Tripti
    Tripti Anil
    Author Agent
    Packt Publishing
    Message was edited by:
    user598396
    Message was edited by:
    user598396

    Potential applicants must be prepared to forego a social life, have a very understanding wife/husband/partner and be prepared to answer emails every day asking "When will it be ready?"
    John.

  • Multiple sources for address book

    Is there a way to keep different sources for addresses separate and discrete in Address Book? For instance, we have our own addresses from iCloud, but I also have addresses coming from Google Mail. We've worked hard to keep the iCloud ones updated and "clean", whereas the Google Mail ones are a bit messier. Is there a way to keep them distinct when importing/subscribing from Address Book? Or, does all the information end up getting merged?
    Thanks,
    John

    Hi,
    Pete_Sg1 wrote:
    I need to write a query whiich returns book details but it should identify records (ie. Titles) with multiple authors and return the record with Authors separated with pipe ('|') like (no need of SURRID column )Get there : {message:id=9360005}
    and scroll down to "string aggregation"
    Pete_Sg1 wrote:
    A table storing book details can only be designed like above. Right ? I mean, the duplication of records for one book because of multiple authors cannot be avoided. Right ? I would have had a table for books, and a separate one for authors, and a 3rd one for their relations :
    create table books
    book_id integer,
    title varchar2(100),
    etc...
    create table authors
    author_id integer,
    name varchar2(100),
    etc...
    create table book_authors
    book_id integer,
    author_id integer
    );You could also have only 2 tables book and authors (with authors table having a fk column to book_id).
    It would depends if the author is supposed to remain unique throught different books.
    - The 3 tables model would allow a single update on author information to be automatically "propagated" to all book he participed in.
    - The 2 tables model would allow to have different information for each participation of the author to different books (but would certainly "duplicate" part of the data about the author)
    One can also have even more tables to totally avoid data "duplication".

  • Multiple seats for event booking

    Hi everyone,
    My event bookings form is currently set up to only take 1 booking at a time. I found the information at the following url to extend the form for multiple bookings:
    https://forums.adobe.com/docs/DOC-1774
    It said to add the following input field to the form:
    <input class="cat_textbox" id=BookingAllocation name=BookingAllocation>
    I just have two questions about this. Firstly, if I go into my form and add in a custom field, I get the following code:
                <tr>
                    <td><label for="CAT_Custom_330508">How many seats would you like to book? <span class="req">*</span></label><br />
                    <input type="text" maxlength="4000" name="CAT_Custom_330508" id="CAT_Custom_330508" class="cat_textbox" /></td>
                </tr>
    Each of the "name", "id" and "for" attributes in the above code, all have a custom field number, ie. Custom_330508. From what I have read, apparently I'm not supposed to change these as this is what BC uses to insert the data into the correct field within the CRM. The "id" and "name" values from the input field that I got from the abovementoned url are:
    id=BookingAllocation name=BookingAllocation
    So the problem is how can I get it to work if I'm not supposed to change the custom field number from my BC form. Also, once a person has entered a number into that field how can I get that field to update the amount field lower down on the form, ie. to multiply the number by the event cost?
    I'd really appreciate any help.

    Hi,
    In iChat 2 it was possible to have one name and Chat to it (Text only) in two locations (Chatting to your self as it were)
    In iChat from iChat 3 you can set each Mac at one location to allow Multiple Logins with the same Screen Name.
    This on the whole means that all computers will "Answer" an IM and show at least one side (incoming) of the Chat.
    Now in addition to this you can also set iChat to Not accept Off Line IMs (either by answering the questioning IM from AIM or on the AIM web site - you can login with your @mac.com name)
    as well as that iChat can be set in the General Preferences to "When iChat is Quit, Set My Status to Off Line"
    this effects not only Off Line IMS but also the fact iChat will start Up if the computer is On and someone IMs you.
    My experience is that it does not seem to be consistent and that the above settings seem to have something to do with it.
    There does not seem to be a limit to the number of Multiple Logins that you can have. (seats as you put it)
    Jabber accounts do not allow Multiple logins so the issue does not arise as you cannot essentially login on multiple computers.
    Summary.
    The best thing I can suggest is tweaking the General settings and see if things change
    9:36 PM Thursday; January 21, 2010
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Adding a filename label to multiple images for a book

    Hi. I have finally convinced my studio to go Mac and we are presently playing with a trial version of Aperture.
    I am presently trying to create a new book using the Stock book theme, to create a book of thumbnails. I have taken out all the text boxes and made a page - creating the thumbnails the right spacing and size, but now I am trying to add labels to each thumbnail. I have successfully created a label linked to the meta data (file name) but I want this to apply to all the images. I have about 400 images so as you can imagine don't want to click new label for each one. I have tried to copy and paste the caption but all it seems to do is repeat the same file name, so I have 30 pages all labeled 001.jpg.
    Can anyone help? I'm sure in true Apple fashion its quite simple, but I still have not worked it out and am running out of time.
    Any help would be greatly appreciated.
    Thanks
    Hannah

    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    However, you can only send 4 pics at a time to an external editor.
    Regards
    TD

  • Using multiple themes for photo book

    Is there a way that one can create a photo book using different "themes" throughout? Say if I want one page to be "Tropical" and another with "Modern"........is such modifications allowed? Thanks in advance.

    The Print to PDF->Save PDF to iPhoto only creates a 200 dpi jpg image of each page. You can edit that Automator workflow and change the dip to 300, what iPhoto uses when it converts the book to pdf for uploading and printing. Or you can download an edited +Save PDF to iPhoto 300 DPI.workflow+ from Toad's Cellar and place it in the HD/Library/PDF Services folder.

  • How to pivot horizontally Author names, and group by Book title. One row per book with multiple authors

    I have 3 tables - Book, Author, BookAuthorReference
    A book can have multiple authors, and when I do straight query I get multiple rows per book
    SELECT <columns>
    FROM Book b, Author a, BookAuthorReference ba
    where ba.BookId = b.BookId and
    ba.AuthorId = a.AuthorId
    I want to get the results as ONE row per book, and Authors separated by commas, like:
    SQL 2008 internals book    Paul Randal, Kimberly Tripp, Jonathan K, Joe Sack...something like this
    Thank you in advance

    This can by done by straying into XML land. The syntax is anything but intuitive, but it works. And moreover, it is guaranteed to work.
    SELECT b.Title, substring(a.Authors, 1, len(a.Authors) - 1) AS Authors
    FROM   Books b
    CROSS  APPLY (SELECT a.Author + ','
                  FROM   BookAuthorReference ba
                  JOIN   Authors a ON a.AuthorID = ba.AuthorID
                  WHERE  ba.BookID = a.BookID
                  ORDER  BY ba.AuthorNo
                  FOR XML PATH('')) AS a(Authors)
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How do I add a widget to give a review or star rating for a book at the end of a book in iBooks Author?

    How do I add a widget to give a review or star rating for a book at the end of a book in iBooks Author? You know, how you buy books on iBooks and when you're finished reading it, there's a place where you can give a rating or review right there on the very last page?

    Just supply a link that says 'Review This Book' - use http://itunes.apple.com/linkmaker/ to generate one.

  • Best Practices for multiple authors using single project?

    We are having many issues, particularly with moving, renaming, and multiple check out warnings.  We have a single project with many authors and it seems like RH is not designed to work that way. There is an article in the RH devnet-archive in an article entitled "Sharing RoboHelp Project Among Multiple Authors" that says"
    "At first there may be the temptation to let every author work on every file in a project.  This is certainly not a best practice. Regardless of source contraol, it is always best to designate certain authors as owning certain content-related sections, folders, or topics within a project -particulary at the folder level."
    This statement, and our experience seems to indicate that RH is not a true CMS as we had envisioned.  What are the best practices for this scenario to avoid stepping on each others toes and having problems with source control.

    I have moved this to the source control forum for the gurus there to answer.
    Meantime I must admit I read that statement the same way as you first time. However, on rereading I think what the author is saying is not that what you want cannot be done, rather it is best practice to guide authors to work in discrete areas.
    I will leave it to the author or another guru to give you a more complete answer.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • I already have a new book that is ready to publish as an iBook. In addition I also have an app prepared for this book. Please tell me how to upload this book (title is: "How To Cope...with life") and the app for it into your iBook Authors app so I can hav

    I already have a new book that is ready to publish as an iBook. In addition I also have an app prepared for this book.
    Please tell me how to upload this book (title is: "How To Cope...with life") and the app for it into your iBook Authors app so I can have it offered for sale @$0.99, in your app store?
    FROM: Terry Weber, Email: [email protected]

    https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa/wa/bookSignup

  • I book author is for mac book?

    I book author is for mac book? For the laptop? or it is only for i-pad?????
    Because I tried to download it and I though that I managed to do that but when I tried to run  the mac was dead. I had to restart. And when I restart the i book author was not there.
    please If anyone knows answer to my mail [email protected]
    thanks in advance
    NIKOLAS

    iBooks Author is for your computer.
    iBooks 2 is for your iPad.
    Go back to the store and repeat the download for iBooks Author on your computer. If still no joy, consider walking your MB into the nearest Appls Store and asking for help there.
    Good luck.

  • When importing my address book from Outlook why do I have multiple entries for the same contact?

    I have an address book and it contains one list in Outlook. I just downloaded Thunderbird and imported my address book. The address book and one list imported very easily but there are anywhere from 3-5 entries for each person in my contacts. If I delete the extras they are removed from my list as well. Why are there multiple listings for each contact and how can I remove the duplicates without losing my list entries?

    as I was looking thru pictures in my finder I noticed there were several copies of the same pictures I had taken yesterday. I just went thru all Seven copies of the pictures (accidental pics of my hands and the desk etc) and right clicked and moved  them to trash, then I thought I'd look it up when I realized its not just these pics, but very many had een stored in groups of three or four.
    1. Why is that?
    Depends on where you saw them - If they were in the iPhoto library iPHoto has either two or three different versions (no duplicates) or each photos in its library - this is not optional and can not be changed  --  If they were not in the iPhoto library then you can do what you please with them and they have nothing to do with iPhoto - iPhoto is only involved with the photos in its library
    2. Why is it advised to NEVER make changes to the structure or contents of iPhoto in Finder?
    (as quoted Below)
    "I would suggest using one of the proven safe programs - if you are going to manually remove them be sure to remember that you NEVER make any chnages to the structure or contents of the iPhoto library using the finder - only make changes using iPhoto"
    Very simple - if you do you will destroy your iPhoto library and have to start over losing all work you have done in iPhoto - The iPHoto library is a SQLite database and there are NO user servicable parts in the iPhoto library and any changes made using teh finder will corrupt the database and cause dataloss
    Is that a good enopugh reason for you?
    So if these photos were in the iPhoto library when you
    I just went thru all Seven copies of the pictures (accidental pics of my hands and the desk etc) and right clicked and moved  them to trash,
    You destroyed your iPhoto library and will either have to restore your backup from before you did this. put everything back EXACTLY like it was before or start over
    LN

  • HT5072 What is the default font for I-books author. I believe it is Helvetica 14. thanks/marv

    What is the default font for I-books author, the one brest to choose so that book is readable om an i-pad. Is it Helvetica 14? How about the paragraph pf text that introduces each chapter (it is a larger font, I believe) Thanks.

    It depends on the template and the part of the text.  Just click your mouse on the text and you should see the font name in the format bar at the top.

  • 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

  • How to copy the same address for multiple contacts in Address Book?

    Hi! I got a question, I didn't find an answer for yet.
    How to copy the post address from one contact to another, without manual entering. I mean if I have one contact with already entered post address, can I just copy it someway at once to another contact?
    I don't want cards to merge, I need separate contacts, that may have different phones, e-mails, but the same post address. Please, advise.

    Thanks! yes, this is a solution I'm following now. But I was wondering about the similar way as it is made in Daylite or Contactizer - you create company with name and post address first, and then can create a contact for that company. And company name and post address will appear in contact name.
    I just wonder why such a simple and useful solution isn't available in Address Book as default.
    I know there are many scripts written for Address Book. Maybe there is something for this purpose?

Maybe you are looking for

  • Comparing data in different resultsets

    Hi everybody! I am working on an web application involving some EAI, as a requirement i need to compare data from two different sources (databases to be precise) and fill a XML based on certain rules. I wish to know if there is a way to compare two R

  • Is there a way I can use my macbook to project the audio and visual on my apple tv?

    I just purchase an apple tv. It was my goal to use the apple tv to match video tutorials of a certian website onto my tv. I am now realizing that I do not think this is possible correct? To clarify it is a website that is vimeo, youtube, or anything

  • Video out on

    Hi there, I am trying to connect my zen player to TV using Sony RCA (AV) cables. and when I do that, I get a message on Zen's screen as "switching to AV out display" or something... and then nothing comes up on TV's screen. I tried switching between

  • Microsoft Windows Kernal Power

    I have a computer that has bluescreened twice without anything happening. Both times it is reported that no one is using the laptop. It's just sitting there not doing anything. I looked at the Event Viewer and there are Kernal-Power events, and then

  • Credit card from customer

    Hi my client is looking for ability to indicate for any invoice which is being paid by credit card by customer to know  that an credit card payment is in process for an invoice (but the transfer has not been completed / or applied) Guide me step wise