Re: Distinct Query Problem

2008-12-23 Thread Tompkins Neil
exact > columns interms of wat is suppliers which table is it coming from > etc. > > -Original Message- > From: Tompkins Neil [mailto:neil.tompk...@googlemail.com] > Sent: Monday, December 22, 2008 5:16 PM > To: Baron Schwartz; [MySQL] > Subject: Re: Distinct Query Probl

Re: Distinct Query Problem

2008-12-22 Thread Brent Baisley
On Fri, Dec 19, 2008 at 1:03 PM, Tompkins Neil wrote: > Hi, > > I've the following query which I'm having problems with. Basically I have > a 5 tables as follows : > > MasterTB - Contains list of master records > LookupTB - Contains relationship between MasterTB to ProductTB > ContentTB - Contain

Re: Distinct Query Problem

2008-12-22 Thread Tompkins Neil
OK, I've made further progress by changing GROUP BY ProductTB.ProductID, MasterTB.MasterID to GROUP BY MasterTB.MasterID. However ProductTB.Supplier is showing the incorrect Supplier. Why is this ? Thanks Neil On Mon, Dec 22, 2008 at 11:45 AM, Tompkins Neil < neil.tompk...@googlemail.com> wrote

Re: Distinct Query Problem

2008-12-22 Thread Tompkins Neil
Hi, If anyone could point me in the right direction, I'd be most grateful. Thanks ! Neil On Mon, Dec 22, 2008 at 9:55 AM, Tompkins Neil wrote: > Hi > > I'm having trouble trying to figure this out. Any help/example would be > grateful. > > Thanks > Neil > > On Sun, Dec 21, 2008 at 4:30 PM,

Re: Distinct Query Problem

2008-12-22 Thread Tompkins Neil
Hi I'm having trouble trying to figure this out. Any help/example would be grateful. Thanks Neil On Sun, Dec 21, 2008 at 4:30 PM, Baron Schwartz wrote: > On Fri, Dec 19, 2008 at 1:03 PM, Tompkins Neil > wrote: > > > of products for all suppliers for a particular product. However I want > to

Re: Distinct Query Problem

2008-12-19 Thread Jochem van Dieten
On Fri, Dec 19, 2008 at 7:03 PM, Tompkins Neil wrote: > Basically each product is listed in the master table, and can have a number > of suppliers linked to it (ProductTB). The query above will show me a list > of products for all suppliers for a particular product. However I want to > be able to

RE: DISTINCT query

2004-06-01 Thread SGreen
MAIL PROTECTED]> 06/01/2004 02:28 Fax to:

RE: DISTINCT query

2004-06-01 Thread Jack Coxen
the before and after data. Jack -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 01, 2004 1:52 PM To: Jack Coxen Cc: MySQL List (E-mail) Subject: Re: DISTINCT query Jack, I am not sure what you want your output to look like... If you want the sa

Re: DISTINCT query

2004-06-01 Thread SGreen
Jack, I am not sure what you want your output to look like... If you want the same columns (the routerid with the counts of how many interfaces operate at which speed) but broken down by unique descriptions that means to me that you have multiple descriptions for each unique interface ID... Is th