I have a tool which can't accept union operator or " or " conditional operator in where function
I have two queries
First query
Select * from tableA A left outer join tableB B on A.a1=B.b1 where A.a1 =20200131 and B.b2= 'monkey
'
2nd query
Select * from tableA where A.a1 =20200131 and A.a3 ='Tom`
Combined query using "or" operator below
Select * from tableA A left outer join tableB B on A.a1=B.b1 where B.b2= 'monkey' or A.a3 ='Tom
'
But I want a query without using "or" operator and union
Simple queries possibly involving joins or subqueries is expected