Re: [GENERAL] Doubt about join queries

2009-04-21 Thread jc_mich
Thanks a lot! It works as good as I wish Best regards. Michael Nolan wrote: > > On Tue, Apr 21, 2009 at 12:04 PM, jc_mich wrote: > >> >> The problem is not the formula, the problem is the join. I've summarized >> it >> because is a large formula and I've got right results >> >> > You're quit

Re: [GENERAL] Doubt about join queries

2009-04-21 Thread Michael Nolan
On Tue, Apr 21, 2009 at 12:04 PM, jc_mich wrote: > > The problem is not the formula, the problem is the join. I've summarized it > because is a large formula and I've got right results > > You're quite correct that the problem is the join, because neither of the examples you gave have any code to

Re: [GENERAL] Doubt about join queries

2009-04-21 Thread jc_mich
The problem is not the formula, the problem is the join. I've summarized it because is a large formula and I've got right results Here is the complete code code, stores and clients have a longitude and latitude, and ponderator is a demand variable: SELECT distances.client_id, min(distances.dist)

Re: [GENERAL] Doubt about join queries

2009-04-21 Thread Filip RembiaƂkowski
2009/4/20 jc_mich > > Hello > > I have a table with clients and other with stores, I want to calculate > minimum distances between stores and clients, the client name and its > closer > store. > > At this moment I can only get clients ids and minimum distances grouping by > client id, but when I