I am writing one query, that needs to satisfy the following conditions.
select field1, field2, field3 from `tabFirstTable`as ft join `tabSecond