select * from dbo.v_Devide I have a SQL table with below DDL.USE [abc]GOSET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOCREATE TABLE [dbo].[v_Devide]( [i_S.NO] [nchar](10) NULL, [data_14] [money] NULL, [data_15] [money] NULL) ON [PRIMARY]GO
When i run a SQL Query select * from dbo.v_Devide
I have below data in the tablei_S.NO data_14 data_151 0.721426829 0.8285696862 0.680610191 0.7693861373 0.631995177 0.8572871274 0.586852665 0.8389099115 0.544934617 0.8861306316 0.506010716 1.0871221727 0.5662961 1.0094705888 0.529419115 0.9373655469 0.548745449 0.870410864
Now I want to perform a caluculation againest of data_14 and Data_15 and end as a new columnand in the end as new column I should caluculate the = 100-(100/(1+data_14/Data_15))this should be done on each row ending... on complete table...so expected results would be...i_S.NO data_14 data_15 New Column1 0.721426829 0.828569686 46.543771032 0.680610191 0.769386137 46.938752733 0.631995177 0.857287127 42.436224174 0.586852665 0.838909911 41.160616415 0.544934617 0.886130631 38.078949766 0.506010716 1.087122172 31.761990467 0.5662961 1.009470588 35.937813928 0.529419115 0.937365546 36.093854049 0.548745449 0.870410864 38.66701955
Thanks in Advance..JJ