Incorrect results might occur when you reference a view that contains an aggregate function


Using an SQL procedure might result in incorrect results when all of the following conditions occur:

The only workaround is to create a table rather than a view in the previous query and use that table in the FROM clause.