Ich habe zwei Tabelle. fisrt ist "tab_task"Ich möchte die Zeilen auswählen, die nicht folgen, wo Bedingung oder "außer wo Bedingung"
task_id| task_name | created_by | status
-------------------------------------------
1 | task1 | aarav | 1
2 | task2 | rahul | 0
3 | task3 | aarav | 0
4 | task4 | jasmin | 0
5 | task5 | yamini | 1
6 | task6 | priyanka | 0
7 | task7 | manish | 1
8 | task8 | aarav | 1
und die zweite Tabelle ist "tab_user"
user_id| txt_full_name|
-------------------------
1 | aarav |
2 | rahul |
3 | yamini |
4 | jasmin |
5 | manish |
6 | priyanka |
SELECT created_by from tab_task where status='1'
jetzt haben wir vier Reihen "Aarav, yamini, manish und Aarav".
Jetzt möchte ich den "txt_full_name" von "tab_user" holen, wobei "txt_full_name" nicht gleich "tab_task's created_by" ist. Ich meine, ich möchte holen: rahul, jasmin, priyanka von "tab_user".
Grob: Wählen Sie x. * Von x links verbinden y auf y.etwas = x.etwas und y.otherthing =? WHERE y.primary_key IS NULL – Strawberry