>On Sun, Aug 7, 2011 at 3:00 PM, Peter Lind <peter.e.lind@xxxxxxxxx> wrote: > >Maybe it's just me, but I can't see anything that would work as >foreign key for you to join on - neither table seems to have a foreign > >key > Sorry for my ignorance. How do I create the foreign key? The two columns from each table that have a similar relationship are stores.store_mar and store_list.id_market. Once the foreign key is build what would be the correct syntax to achieve my query? Thank you very much, Chris > > >