Range in outer joined table in AOT query

Version : AX 2012 R3.

Hi Friends,

I want to put a query range in outer joined datasource in AOT query. When the query is prompted user will enter the range in SysQueryForm. Is there a solution or workarround?

I have 2 tables in query, Table1 and Table2 , because Table2 may not always have related record i cannot put an inner join but i want query range on Table2 as well.