CREATE/DROP STATISTICS statement cannot refer to virtual tables

Item Value
SQLCODE -858
Constant SQLE_HISTOGRAMS_NOT_SUPPORTED_ON_OBJECT
SQLSTATE 42W67
Sybase error code 13861
ODBC 2 State 37000
ODBC 3 State 42000

Probable cause 

You attempted to use CREATE/DROP STATISTICS to create/drop one or more histograms on a virtual database object, such as a view or remote table. The CREATE STATISTICS and DROP STATISTICS statements can only refer to base tables, local temporary tables, or global temporary tables in the ASA database that you are connected to.