NULLIF(expr1, expr2) returns NULL if the two expressions are equal or else returns expr1. It's a function used by many DBs like PostgreSQL, MySQL, MS-SQL server and others.
create table Tbl_Sales_Data(Id int identity(1,1) primary key,Store_Name varchar(50),Actual int,Goal int) insert into Tbl_Sales_Data values ('A',50,50) insert into Tbl_Sales_Data values ('B',40,50) ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results