I created a database with code code, and the question is, is it difficult for me to rewrite this SQL statement into C # code.
The following is an SQL statement in which I need help with the adaptation and the tables that I currently use. The purpose of this SQL Query is that there is a record in the TableViewedMessageLog table about which user saw what message and the desired effect all Non-Read messages (what information is stored in this table โ TableViewMessageLogs) for a specific user should select.
http://gyazo.com/0105c0959bdd2930272bf5c07a112a11
select * from TableMessages tm where tm.Id not in (select tv.Message_Id from TableViewedMessageLogs as tv where tv.User_Email = ' asd@asd ')
source share