Tablename: call
-------------------
|id | name |
-------------------
| 1 | a |
| 2 | b |
| 3 | c |
| 4 | d |
| 5 | e |
-------------------
Tablename: call_detail
--------------------------------
|id | detail | call_id |
--------------------------------
|1 | note-1 | 1 |
|2 | note-2 | 1 |
|3 | note-3 | 2 |
|4 | note-4 | 2 |
|5 | note-5 | 2 |
|6 | note-6 | 3 |
--------------------------------
need result
----------------------
| id | name | detail |
| 1 | a | note-2 |
| 2 | b | note-5 |
| 3 | c | note-6 |
| 4 | d | null |
| 5 | e | null |
----------------------
how to left join two table last insert id
im need left join call.id = call_detail.call.id last record
Is there a way to do this
Can you show with a simple sampling