Having this table
Table "Items"
itemID
itemTitle
itemContent
and this
Table "MyList"
userID
itemID
deleted
how can I select all rows from table "Items" and showing the field "deleted", even if the itemID do not exist in "MyList", given an userID?
Example of the query result:
itemID | itemTitle | deleted | userID
-------------------------------------
1 | Title1 | 1 | 2
2 | Title2 | 0 | 2
3 | Title3 | (null) | (null)
4 | Title4 | (null) | (null)
What would be the query, so that I can get that result?
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…