In this blog post, you’ll learn more about the Sybase Error CREATE/DROP STATISTICS statement cannot refer to virtual tables and the reason for receiving this error
Sybase SQL Error Message
CREATE/DROP STATISTICS statement cannot refer to virtual tables
Reason for this Error
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 SQL Anywhere database that you are connected to.