This example assumes the following statistics have been collected:
STATISTICS COLUMN o_orderkey ON Orders; STATISTICS COLUMN o_orderdatetime ON Orders;
This query can be used to retrieve the statistics:
SELECT * FROM dbc.ColumnStatsV WHERE Databasename = 'sales' AND TableName = 'Orders'