Availability of this table
Table "Items" itemID itemTitle itemContent
and this one
Table "MyList" userID itemID deleted
how can I select all rows from the "Elements" table and show the "deleted" field, even if the ItemID does not exist in "MyList", given the user ID?
Example query result:
itemID | itemTitle | deleted | userID ------------------------------------- 1 | Title1 | 1 | 2 2 | Title2 | 0 | 2 3 | Title3 | (null) | (null) 4 | Title4 | (null) | (null)
What will be the query to get this result?
thanks
source share