Forum Discussion
Paata1966
Aug 09, 2023Copper Contributor
Can I merge two or more table by column and row.
Assuming I have a two table containing the following information: Table 1: Field1 | Field2
=====================
ABC | NULL
NULL | DEF Table 2: Field3 | Field4
=====================
ABC1 ...
olafhelper
Aug 10, 2023Bronze Contributor
Paata1966 , the requirements on the result are unlogical and unlogical is difficult to implement in SQL
Why is table1, field2 = "Def" only once included in the result? Unlogical.
Paata1966
Aug 10, 2023Copper Contributor
olafhelper Thanks for the answer, I think it's logical enough, I solved the problem using ROW_NUMBER and LEFT JOIN