please, help me:
I have next tables:
Unit
- id
- name
User
- id
- name
Rate
- unit_id
- user_id
I do not understand how to create correct structure of criteria from SQL:
Code:
SELECT * FROM Unit WHERE id not in (SELECT unit_id FROM Rate WHERE user_id = 55);
I saw this answer. But I do not understand how to make Condition linked to another Table (Entity).