I'm trying to write a laravel SQL query to join two tables and extract the non-matching columns from tables.
Products Table
| id | Name |
|---|---|
| 1 | abe |
| 2 | edfg |
| 3 | swfgd |
| 4 | df |
| 5 | fg |
Clearing Table
| Product_id | Name |
|---|---|
| 2 | edfg |
| 4 | df |
| 5 | fg |
Now, I'm expecting the result table to be the following.
Result table
| id | Name |
|---|---|
| 1 | abe |
| 3 | swfgd |
Can anyone help me with this?