mysql - Join tables only where value not in table B -


I am trying to join 2 tables and are not showing a value that does not exist.

Table_Items: item_id, title, etc.

Table_History: item_id, history_id, action, date

Many possible actions (purchased, added for each disk) , Played, smash, etc.) Each action takes an item_id by link table_new line in history. The query that I'm searching for will return all the disks which are not ripped. My query returns many rows, everything is returned because there is at least one entry in the history table for each item.

  SELECT items.item_id, items.title AS heading, item. / Creator, history. Skip item from item Join history at item Iitem_id = history.item_id where history. The process 'Arp% No' group item by using the .item_id title   

I'm using Mysql help would be appreciated! You are welcome.

Just add the action filter to include and then empty (anti-joint) in which

  SELECT items.item_id, items.title AS heading, item. 'Authors / Producers', History Exclude actions from items, add items to history.it_id = history.item_id and history. 'History' like 'rip%' ITM_ID IIL no. You can not even do the   

with ITEM.TAM_ID title

  SELECT Items.item_id, items.title AS titles, items. 'Authors / Producers', History Exclude actions from items Add items to history .item_id = history.item_id where history. Item .item_id ORDER title     by Item no. Edit_id (history's history. 'RIP%')

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -