Actually there's no integrety problem, because it's a purely transactional
database, and it was simplified for the question (id isn't the primary key
for the table).  This query works:

select t1.id, t1.time, t2.email
from table1 t1 left outer join
  (select distinct(email),id from table2) t2
 on
t1.id = t2.id

tom


"Deanna Schneider" <[EMAIL PROTECTED]> wrote in message
00d001c12b41$10421780$cdfb6880@deanna">news:00d001c12b41$10421780$cdfb6880@deanna...
> Hm...It looks like you have a data integrity problem here. If the "id" is
2,
> there should only be one record with ID = 2 in your first table.
Otherwise,
> your id is really a combination of the ID and the date, and you'll need
the
> date in your second table to do a proper join.
>
> Make sense?
>
> -d
>
>
>
> Deanna Schneider
> Interactive Media Developer
> [EMAIL PROTECTED]
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to