Re: Getting unique values

2006-06-29 Thread Chris Sansom
At 16:13 +0100 29/6/06, Pooly wrote: If you know the picid previously retrieved, then the clause (caption LIKE '%searchterm%' OR title LIKE '%searchterm%' OR blurb LIKE '%searchterm%') is redundant, isn't it ? No, because those details may well be different for different instances of the same

Re: Getting unique values

2006-06-29 Thread Pooly
Hi, 2006/6/28, Chris Sansom <[EMAIL PROTECTED]>: I'm sure this is an elementary problem, but I can't get my head round it. I have two tables: pix and sections, the relevant bits of which are: pix (2,421 rows): picid varchar(7) not null sectionid smallint(5) unsigned not n

Re: Getting unique values

2006-06-29 Thread Chris Sansom
At 22:04 +0100 28/6/06, I wrote: I have two tables: pix and sections, the relevant bits of which are: pix (2,421 rows): picid varchar(7) not null sectionid smallint(5) unsigned not null caption text null picid and sectionid are a joint primary key

Getting unique values

2006-06-28 Thread Chris Sansom
I'm sure this is an elementary problem, but I can't get my head round it. I have two tables: pix and sections, the relevant bits of which are: pix (2,421 rows): picid varchar(7) not null sectionid smallint(5) unsigned not null caption text null pici