Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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?
NodeReaper waits for the new pizza guy, again

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
























    Results (351 votes). Check out past polls.