I want to write this logic in SQL scaler Fn
bool FN(int X, int Y)
{
int Result = X * 2;
if(Y < Result)
return true;
else
return false;
}
how?!!!!
SQL scaler fn
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Roei BarRank #1,271 · 1.4K reputationPosted Oct 4, 2009, 11:16 AM EDT
CREATE FUNCTION fnGet (@X integer, @Y integer) RETURNS Int AS BEGIN int Result = @X * 2; if(@Y < Result) RETURN true else RETURN falseEND
GO