Returns a field value from a result with exactly one row. Useful for getting the result of an aggregating function.