Calculate Simple Interest
Calculate Simple Intersert
Calculate Simple Interest in Sql Server 2008
DECLARE @P float; DECLARE @R float; DECLARE @T float; DECLARE @SI float;
set @P = 50000 ;
set @R = 05;
set @T = 05;
set @SI = @P*@R*@T/100
select @SI as 'Simple Interest'
Calculate Compound Interest
select @P*POWER((1+@R/100),@T)-@P as 'compoundInterest'
set @P = 50000 ;
set @R = 05;
set @T = 05;
set @SI = @P*@R*@T/100
select @SI as 'Simple Interest'
Calculate Compound Interest
select @P*POWER((1+@R/100),@T)-@P as 'compoundInterest'
Comments
Post a Comment