You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to know how to build the query like below that has conditions across tables.
SELECT TableA.ColA, TableB.ColB
FROM TableA
INNER JOIN TableB ON TableA.id=TableB.id
WHERE (TableA.ColX = TableB.ColX OR TableA.ColY > TableB.ColY) AND (TableA.ColZ < TableB.ColZ)
Activity
prasad83 commentedon Jun 21, 2017
Is there a simpler way than this?
nilportugues commentedon Jun 21, 2017
not for the time being
marcus-hiles commentedon Mar 29, 2019
Simpler way would be raw mysql query @prasad83