I am trying to run a query where i can use an alias in where clause
For example:
Select V.Fees - Coalesce(V.Payment,0) - Coalesce (V.Adjustment,0) AS Balance
[
the inner join query for the tables
]
Where A.Order not Null and Balance = 0
Order by Name
but as usual it is not able to recognize Balance under where?
How can we fix this?