I have created 1 Formula Master. In which i have created list of formulas
For Eg: B 60/60 (Hob Cabinet)=Height*Depth
I have used foll querry to calculate calculation.
declare @Depth as numeric(18,2)
declare @Height as numeric(18,2)
declare @Area as numeric(18,2)
declare @Formula as varchar(100)
set @Depth=100
set @Height=100
Set @Formula=(Select Formula from [formula_master] where [name] = ('B 60/60 (Hob Cabinet)'))
select @Formula
if(@formula=(Select Formula from [@formula_master] where [name] = ('B 60/60 (Hob Cabinet)')))
begin
set @LPR=@formula
Select @LPR
end
Plzzzz help me out.......


Dorababu MekaRank #457 · 5.5K reputationPosted Jul 28, 2011, 12:13 AM EDT
Zoran HorvatRank #792 · 2.9K reputationPosted Jul 28, 2011, 12:17 AM EDT
EXEC @query
Zoran
Pravin GhadgeRank #1,340 · 1.3K reputationPosted Jul 28, 2011, 1:20 AM EDT
Formula Master Table
Name Formula
B 60/60 (Hob Cabinet) Height*Depth
B14(Cabinet) Height*Depth*Width
Plz help me out........