Re: [PHP] displaying repetitive results

2004-11-13 Thread Tom Rogers
Hi, Thursday, November 11, 2004, 4:04:27 AM, you wrote: CL> Given a database query thats returns results from a linking (or xref) CL> table which includes repetition because of the joins: CL> ++--+--+ CL> | id | title| subject | CL> ++-

Re: [PHP] displaying repetitive results

2004-11-13 Thread Curt Zirzow
* Thus wrote Chris Lott: > On Sat, 13 Nov 2004 06:30:14 +, Curt Zirzow > <[EMAIL PROTECTED]> wrote: > > > > You might normalize the data a bit. > > > > agreed! > > > > Curt > > My data IS Normalized! The results you are seeing below are from > joining together the books, subjects, and books

Re: [PHP] displaying repetitive results

2004-11-13 Thread Chris Lott
On Sat, 13 Nov 2004 06:30:14 +, Curt Zirzow <[EMAIL PROTECTED]> wrote: > > You might normalize the data a bit. > > agreed! > > Curt My data IS Normalized! The results you are seeing below are from joining together the books, subjects, and books_subjects xref table, as I explained below. But

Re: [PHP] displaying repetitive results

2004-11-12 Thread Curt Zirzow
* Thus wrote Greg Donald: > On Wed, 10 Nov 2004 09:04:27 -0900, Chris Lott <[EMAIL PROTECTED]> wrote: > > Given a database query thats returns results from a linking (or xref) > > table which includes repetition because of the joins: > > > > ++--+--+ > > | id |

Re: [PHP] displaying repetitive results

2004-11-10 Thread Greg Donald
On Wed, 10 Nov 2004 09:04:27 -0900, Chris Lott <[EMAIL PROTECTED]> wrote: > Given a database query thats returns results from a linking (or xref) > table which includes repetition because of the joins: > > ++--+--+ > | id | title| subject |

Re: [PHP] displaying repetitive results

2004-11-10 Thread Brent Baisley
Don't know what version of MySQL you are using, but I upgraded to 4.1 so that I could use the GROUP_CONCAT function, which does what you are looking for. http://dev.mysql.com/doc/mysql/en/GROUP-BY-Functions.html Otherwise, your front-end will need to do the rolling up of the records. On Nov 10,