I have two tables SAP HANA.
I want to do a union of these two tables by selecting some common columns in the them.
Below are the things I want to satisfy while doing the union.
1) SELECT ALL product_keys from TABLE A
2) IF product_key if present in both TABLE A and TABLE B then pick product_key from only TABLE A
3) IF product_key if not present in TABLE A then pick product_key from TABLE B