asp.net - ASP & SQL Server 2008 : calculated value from another calculated value -


I have to use a SQL statement which will be displayed in Gridview & amp; From CAB or Select * table totals (column 1) SS 200, Yoga (column 1) as table 001 (S & K Constant) as table amount (column 1)

  There should be something like Select / CONSTANT AS C01   

CONSTANT will be given value to the query as a session variable.

That is, the second column of Gridviv is calculated from the result of the first calculation.

What would be the best way to achieve this?

You need to repeat the expression, or use a subquery example eg.

  SELECT *, from C01 = (S00 / continuous); SELECT S00 = SUM (column 1) from table);    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -