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'
 

Comments

Popular posts from this blog

Tree view in winforms using c#

how to Replace null value with 0 Using C#

how to fetch all HTML Table Records and modify all records accordingly using jquery and Javascript