Hi nikko,
This is what's happening anyway ...
For each 'nsidetails.equipmentid', the unitcost will be the same, so, for example, if there were 20 entries for a particular equipmentid, then the SUM would be unitcost + unitcost + ... + unitcost = 20*unitcost.
In general, you cannot operate on AGGREGATE functions, so (eg) COUNT(id)*unitcost is not going to work.
Paul.