You have a couple of choices due to sql limitations. Nest the calculations in the field (can get quite messy with several levels and complex calculations, which is probably why you don’t want to do that) or nest subqueries:
simple but can get messy
SELECT HumanaMember.RPT_PE,
SUBSTRING (HumanaMember.GK_CTRCT, 1, 11) AS ProvID,
RTRIM (SUBSTRING (HumanaMember.GK_CTRCT, 1, 11)) AS TrimmedProvID
RTRIM (SUBSTRING (HumanaMember.GK_CTRCT, 1, 11)) + HumanaMember.RPT_PE ProvReportPeriod
FROM dwABQHP.stage.HumanaMember HumanaMember
or
A lot neater but may have performance issues with a ton of data
select Sub2.RPT_PE, Sub2.ProvID, sub2.TrimmedProvID, Sub2.TrimmedProvID + Sub2.RPT_PE ProvReportPeriod
from
(Select Sub1.RPT_PE, Sub1.ProvID, RTRIM(Sub1.ProvID) AS TrimmedProvID
From
(SELECT HumanaMember.RPT_PE,
SUBSTRING (HumanaMember.GK_CTRCT, 1, 11) AS ProvID,
FROM dwABQHP.stage.HumanaMember HumanaMember
) Sub1
)Sub2
A third option would be to look into Toad Reports (It starts out with a sql query and then you can add calculated fields but I don’t know what the capabilities are, only used it once).
Fourth select into an Excel template file (already has the calculated fields in it, you just query the raw data). Best to put the final calculations on one sheet (1st tab) and the raw data on a 2nd sheet (with a static name). The first sheet uses formulas that reference the raw data fields on the 2nd sheet or other sheets/fields for multiple nested calculations. In the select to file you can tell which Excel sheet to clear and update with the query results, just make sure you don’t flag the file overwrite option. There is also an option for running a macro which can allow you to do a whole ton of stuff.