I am calculating a column based on existing tables column, but I don't know how to do that.
To explain my problem, let's say I have a table which has two columns A and B, both are int. What I am doing right now is
Select A,B (A-B)as C from Table
The check I want to apply is
if C is less then Zero it should show Zero. rather then a negative value.
What is the way to do this in SQL?