Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2016-06-26 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (330 votes). Check out past polls.