You could try something like this.
SELECT
A.Val AS A,
B.Val AS B,
C.Val AS C
FROM MYTABLE
cross apply(select 1 + 2) as A(Val)
cross apply(select A.Val + 3) as B(Val)
cross apply(select B.Val * 7) as C(Val)
More Related Contents:
- SQL Server – error when creating stored procedure
- How can foreign key constraints be temporarily disabled using T-SQL?
- Insert multiple rows WITHOUT repeating the “INSERT INTO …” part of the statement?
- How can I escape square brackets in a LIKE clause?
- Does T-SQL have an aggregate function to concatenate strings? [duplicate]
- Parameter Sniffing (or Spoofing) in SQL Server
- SQL Server String or binary data would be truncated
- Datatype for storing ip address in SQL Server
- How to change identity column values programmatically?
- SQL Server Regular expressions in T-SQL
- Is there a way to loop through a table variable in TSQL without using a cursor?
- Maximum size of a varchar(max) variable
- best way to convert and validate a date string
- How to get a date in YYYY-MM-DD format from a TSQL datetime field?
- Concatenating Column Values into a Comma-Separated List
- Is there a way to simplify a NULL compare of 2 values
- TSQL Try / Catch within Transaction or vice versa?
- What is the maximum number of characters that nvarchar(MAX) will hold?
- TSQL: Create a view that accesses multiple databases
- Sequence as default value for a column
- Aggregate bitwise-OR in a subquery
- How do I flush the PRINT buffer in TSQL?
- Get ROWS as COLUMNS (SQL Server dynamic PIVOT query)
- OR Operator Short-circuit in SQL Server
- Cannot bulk load. Operating system error code 5 (Access is denied.)
- comparing a column to a list of values in t-sql
- Does query plan optimizer works well with joined/filtered table-valued functions?
- Random record from a database table (T-SQL)
- What are row, page and table locks? And when they are acquired?
- time format in SQL Server