Although if you are doing this for many records, the DSUM() could make this a long running query. You might be better off with some form of aggregate query based grouped on a specific field (either as a stand-alone or sub query) and then joining that query to this one.