Quantcast
Channel: Questions in topic: "calculated column"
Viewing all articles
Browse latest Browse all 11

Using a calculated column in a SQL Select statement

$
0
0

I am trying to write a query. Column A comes from database, column B is either 1 or -1 and it is result of a CASE statement that looks into the same table. Now, my column C needs to refer to column B as part of it's calculation (let's say it is Column_B * Column_X ). How is this done since I cannot use Column_B in my SELECT statement.


Viewing all articles
Browse latest Browse all 11

Trending Articles