I need to combine two table in magento 2 i have query like
SELECT customtable_1.name, customtable_1.course FROM customtable_1 UNION SELECT customtable_2.name, customtable_2.course FROM customtable_2
how to write code for above query in magento 2.
Thanks in Advance