Need a MYSQL query to compare two tables and only output non matching results
Posted
by ee12csvt
on Stack Overflow
See other posts from Stack Overflow
or by ee12csvt
Published on 2010-04-16T15:11:54Z
Indexed on
2010/04/16
15:13 UTC
Read the original article
Hit count: 137
I have two tables in my database, one contains a list of items with other information on these items. The other table is contains a list of photographs of these items.
The items table gives each item a unique identifier,which is used in the photographs table to identifier which item has been photographed.
I need to output a list of items that are not linked to a photograph in the second table. Any ideas on how I can do this?
© Stack Overflow or respective owner