Now, this is what i call A USEFUL command. Never seen it in my MySQL manual. Thanks a lot.
Maybe you know this one (useful for foreing keys):
SELECT customers.id,customers.name,debts.string_to_show,discounts.string_to_show FROM customers INNER JOIN debts ON customers.debt_level = debts.id INNER JOIN discounts ON customers.discount = discounts.id WHERE customers.debt_level = 1 AND discounts.amount = 100
Btw: MySQL before 3.22 doesn't support it. Use LEFT JOIN instead.
fLIPIS
Btw: Anyone knows of a link with advanced SQL tutorials? All i've seen is quite in the style of
SELECT field FROM table