Re: Query returns to many results

2006-02-24 Thread Schalk
Peter Brawley wrote: />Now this query is run over two tables and the ab_members table contains >around 302 rows. Around 1/3 of these will be where cup=kids. However, >when this query is run it returns 20,700 results / That's because your ... FROM ab_leader_board ablb, ab_members abm calls for

Re: Query returns to many results

2006-02-23 Thread Peter Brawley
>Now this query is run over two tables and the ab_members table contains >around 302 rows. Around 1/3 of these will be where cup=kids. However, >when this query is run it returns 20,700 results That's because your ... FROM ab_leader_board ablb, ab_members abm calls for a cross join--it a

Re: Query returns to many results

2006-02-23 Thread Martijn Tonies
> Again, I implore all SQL coders to use the explicit JOIN syntax on all > platforms that support it (Oracle being a well-known exception). It makes Oracle supports the ANSI JOIN syntax from v9 and up. > Shawn Green As for the rest, I fully agree. Martijn Tonies Database Workbench - development

Re: Query returns to many results

2006-02-23 Thread SGreen
queries. > > > > -- > > George > > > > > > - Original Message - From: "Schalk" <[EMAIL PROTECTED]> > > To: > > Sent: Thursday, February 23, 2006 6:59 AM > > Subject: Query returns to many results > > > > >

Re: Query returns to many results

2006-02-23 Thread Schalk
on the way mysql is running the query. This has helped me determine some additional indexes that greatly speed up my queries. -- George - Original Message - From: "Schalk" <[EMAIL PROTECTED]> To: Sent: Thursday, February 23, 2006 6:59 AM Subject: Query returns to many resu

Re: Query returns to many results

2006-02-23 Thread George Law
s running the query. This has helped me determine some additional indexes that greatly speed up my queries. -- George - Original Message - From: "Schalk" <[EMAIL PROTECTED]> To: Sent: Thursday, February 23, 2006 6:59 AM Subject: Query returns to many results Greet

Query returns to many results

2006-02-23 Thread Schalk
Greetings All, Please have a look at the following query: SELECT abm.mem_number, abm.first_name, abm.last_name, abm.area_represented, abm.age, abm.sex, abm.cup, ablb.*, ablb.jp + ablb.rc + ablb.fsmgp + ablb.gmc + ablb.saly + ablb.nwgp + ablb.ecgp + ablb.sams + ablb.wcc + ablb.kzngp + ablb.emc