I have created a new SQL table of two column [Lot_no, Comment] which is empty.
|Lot_No|comment|
I have another table of two column [Lot_no, Product_Code] which has values.
|Lot_No|Product_Code|
|1 |2304|
|2 |2307|
|3 |2317|
|4 |2308|
Problem:
I want to create a SQL query where I retrieve
[Lot_No|Product_Code|Comment]for some[Lot_No]but since no data is available for comment in first table it should return null in comment retrieved column.Later I want to insert new row of Lot_No and comment in that empty table. How can I do this?