Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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


Comment on Re: DBI MySQL Join Question

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://799132]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2014-09-20 22:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (163 votes), past polls