Markus: Join, Subselect

Beitrag lesen

Hallo,

ich habe folgende Tabellen (vereinfacht):

Name: threads
Spalte: ID

Name: has_read
Spalte: threads_id
Spalte: user_id

Würde es nicht ein

select threads.id, has_read.threads from threads left join has_read on threads.id = has_read.threads_id WHERE has_read.user_id != $USER_ID

tun?