1. #21

    Default Re:

    Hello, Welcome to the list!

    Zach

    -----Original Message-----
    From: Jean-Christophe Choisy [mailto:closedb@nothus.org]
    Sent: Monday, November 17, 2003 9:35 PM
    To: ruby-talk ML
    Subject:


    Hi everyone! New to Ruby, New to this mailing list... Just felt like
    saying hello...
    later!

    --
    CloseDB ~~ nothus.org





    Zach Dennis Guest

  2. #22

    Default Re:

    Jesper Olsen wrote:
    > I am currently using ruby's mysql extention.
    > Recently PostgreSql has become available to me also.
    >
    > PostgreSql is not part of the ruby distribution, but I notice that
    > there is an extention available for it:
    >
    > [url]http://www.postgresql.jp/interfaces/ruby/reference.html[/url]
    >
    > I think the Ruby API's are more or less the same?
    >
    > Maybe this not strictly a ruby question, but can anyone here comment on
    > how MySQL and PostgreSQL compare?
    > Is PostgreSQL in any way better than MySql - ie. faster or more stable.
    >
    > Cheers
    > Jesper
    >
    >
    > --
    > [url]http://JesperOlsen.Net[/url]
    >
    >
    PostgreSQL has stored procedures and MySQL doesn't (although a new derived
    version of MySQL does - recently announced, I know nothing about it).

    I think PostgreSQL also has constraints and triggers that MySQL doesn't /
    might not have.

    We use PostgreSQL but for your needs (whatever they are) MySQL could be perfect.

    Haven't used MySQL in a few years but I liked it when I used it.



    Peter Hickman Guest

  3. #23

    Default Re:

    check your previous post and please don't post duplicate (no pun intended) threads.
    kglad Guest

  4. #24

    Default Re:

    Useful to add a title to your messages before you post...

    How about:

    select parentid, count(*) as number_of_children
    from childtable
    group by parentid
    order by parentid;

    If there are parent records that have no children then these will be
    omitted. The query above totally ignores the parent table (which you may
    not want it to do).

    John Sidney-Woollett

    Joost Kraaijeveld wrote:
    > Hi all,
    >
    > Is it possible to count and display the number of children of a parent in a generic query?
    >
    >
    > parent table: id
    > child table: id, parent_id
    >
    > Example output of the query:
    >
    > parentid number_of_children
    > parent1 2
    > parent2 6
    > parent3 0
    >
    >
    >
    > Groeten,
    >
    > Joost Kraaijeveld
    > Askesis B.V.
    > Molukkenstraat 14
    > 6524NB Nijmegen
    > tel: 024-3888063 / 06-51855277
    > fax: 024-3608416
    > e-mail: [email]J.Kraaijeveld@Askesis.nl[/email]
    > web: [url]www.askesis.nl[/url]
    >
    > ---------------------------(end of broadcast)---------------------------
    > TIP 3: if posting/reading through Usenet, please send an appropriate
    > subscribe-nomail command to [email]majordomo@postgresql.org[/email] so that your
    > message can get through to the mailing list cleanly
    ---------------------------(end of broadcast)---------------------------
    TIP 5: Have you checked our extensive FAQ?

    [url]http://www.postgresql.org/docs/faqs/FAQ.html[/url]

    John Sidney-Woollett Guest

  5. #25

    Default Re:

    Sorry, don't mean to submit my post twice. When I submitted my post, I got a
    ColdFusion error saying 441 437 Missing Subject.. I thought it didn't get
    submitted and so I clicked back to submit again. And I got the same error
    message again.

    But anyway, sorry for posting my article twice.

    TangoRules Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139