You can create subqueries using the SQL expression editor and use subqueries within subqueries--but the SQL expression only returns one value (although this could be one value per group), not a set of values. Note also that subqueries (even if this is the entire expression) must be enclosed in parens.
In CR XI, note that you cannot reference the table within the summary (corrected in CR 2008, I think), so your subquery might look like this:
(
select sum(`amount`)
from table A
where A.`ID` = table.`ID`
)
This would return the sum of amount at the ID group level.
-LB