in reply to Newbie can't see the forest
SELECT items.it_name, user_item_history.ID FROM items LEFT JOIN user_item_history ON (user_item_history.it_ID = items.it_ID)This will give you all items, and include the ID of any associated history items. Any item that has no history will still return a row with a NULL user_item_history.ID.
-- grummerX
|
|---|