Advertisement
tom_schreiber

imdb_large.actors_unsorted

May 24th, 2023
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.21 KB | Source Code | 0 0
  1. CREATE TABLE imdb_large.actors_unsorted
  2. ENGINE = MergeTree
  3. ORDER BY (first_name, last_name, gender)
  4. EMPTY AS SELECT * FROM imdb_large.actors;
  5.  
  6. INSERT INTO imdb_large.actors_unsorted
  7. SELECT * FROM imdb_large.actors;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement