troubleshooting Question

Calling an alias field to be used in another calculation

Avatar of admoortown
admoortown asked on
Microsoft SQL ServerMicrosoft SQL Server 2005SQL
9 Comments2 Solutions2127 ViewsLast Modified:
We have a couple of complicated calculations being done within the view of SQL but the problem is that i would like to be able to use a field that i have calculated in another calculation into a new calculation.

See an example i have done below

If I want to say a new field is total cost + 1 then I have to type in all the above then + 1 instead of
Total cost + 1

Database Consultant
Join our community to see this answer!
Unlock 2 Answers and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros