I'm using Mysql on my php laravel project.
I have two columns:
column a: column b:
0 a
1 b
1 c
0 d
I connected them with foreign key, but how can I do it with 'where' query?
I mean that e.g column b must receive column a values where value = 0?