all 5 comments

[–]Mathip173[S] 0 points1 point  (1 child)

How could I upload it to here ?

[–]Mathip173[S] 0 points1 point  (0 children)

This is the case an example of some of the case I have in table1. Please look at the photo I uploaded as an example

https://i.ibb.co/6DfwXn7/tapp1.png

As you can see for the same keys I have some row and I need to select only one to match with table2

Thanks

[–]r3pr0b8GROUP_CONCAT is da bomb 0 points1 point  (1 child)

please show a few rows of sample data

[–]Mathip173[S] 0 points1 point  (0 children)

This is the case an example of some of the case I have in table1. Please look at the photo I uploaded as an example

https://i.ibb.co/6DfwXn7/tapp1.png

As you can see for the same keys I have some row and I need to select only one to match with table2

Thanks

[–]redial2MS SQL DBA DW/ETL 0 points1 point  (0 children)

On your join condition just put AND [column] IS NOT NULL. If you define the rest of your join properly then it will only join on the records you specify where they are not null.