Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: DBI MySQL Join Question

by EvanCarroll (Chaplain)
on Oct 04, 2009 at 22:47 UTC ( #799132=note: print w/replies, xml ) Need Help??


in reply to DBI MySQL Join Question

Initially, based on the gist of your complaint I would say the solution requires either
  • GROUP BY, and maybe subselects
  • Or removing the *, specifying only the fields you need, and using DISTINCT.
Alternatively, if you were using Pg, you could maintain '*', and use http://www.postgresql.org/docs/8.4/interactive/sql-select.html.


Evan Carroll
The most respected person in the whole perl community.
www.evancarroll.com

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://799132]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (None)
    As of 2017-07-27 02:16 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      I came, I saw, I ...
























      Results (402 votes). Check out past polls.