Quantcast
Viewing latest article 5
Browse Latest Browse All 11

Using a calculated column in a SQL Select statement

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 latest article 5
Browse Latest Browse All 11

Trending Articles