Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. SQL Server
  3. Question
SQL Server

How can I use SQL computed columns?

Asked by Andrew Jenkins Jul 12, 2021 1.2K views 1 answer
Share

About this question

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

Your answer

1 Answer

More SQL Server discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest SQL Server Blogs

Guides, tips and career advice on SQL Server from JanBask experts.