This message appears when one or more SELECT statements are connected by the UNION keyword, and a SELECT statement other than the final one contains a WITH SAMPLE OF clause. Only the
last
SELECT statement in a UNION may contain a WITH SAMPLE OF clause, which is used to return a subset of the UNION output table.