Sql Server Select In Variable Costing