File: create_statistics.sql

package info (click to toggle)
sqlfluff 3.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,000 kB
  • sloc: python: 106,131; sql: 34,188; makefile: 52; sh: 8
file content (3 lines) | stat: -rw-r--r-- 281 bytes parent folder | download | duplicates (2)
1
2
3
CREATE STATISTICS s3 (ndistinct) ON date_trunc('month', a), date_trunc('day', a) FROM t3;
CREATE STATISTICS my_statistic (dependencies) ON foo, bar FROM baz;
CREATE STATISTICS IF NOT EXISTS s3 (ndistinct, mcv, dependencies) ON date_trunc('month', a), date_trunc('day', a) FROM t3;