If not then that is crappooo
I guess it's crappoooey then.
There are some things you could do, but mostly they're just workarounds. The simple thing is to repeat the calculation.
You could also use a derived table for this, or use computed columns.
Derived Table:
[tt][blue]
Select UnitSales, UnitSales-1 As UnitSalesLessOne
From (
Select [sales]/[unit] As UnitSales
From Table1
) As AliasName
[/blue][/tt]
The computed column approach.
[tt][blue]
Alter Table Table1 Add UnitSales As [sales]/[unit]
Alter Table Table1 Add UnitSalesLessOne As ([sales]/[unit]) -1
[/blue][/tt]
Now, when you select data from this table, there will be 2 new columns. Each time the data is accessed, the numbers will be calculated, so updates to the table will automatically update the computed column.
Hope this helps.
-George
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom