-
-
Save tom-clickhouse/8537ad2016dffaadc2f031a30395074c to your computer and use it in GitHub Desktop.
uk_property_offers table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE uk_property_offers | |
( | |
price UInt32, | |
date Date, | |
postcode1 LowCardinality(String), | |
postcode2 LowCardinality(String), | |
type Enum8('terraced' = 1, 'semi-detached' = 2, 'detached' = 3, 'flat' = 4, 'other' = 0), | |
is_new UInt8, | |
duration Enum8('freehold' = 1, 'leasehold' = 2, 'unknown' = 0), | |
addr1 String, | |
addr2 String, | |
street LowCardinality(String), | |
locality LowCardinality(String), | |
town LowCardinality(String), | |
district LowCardinality(String), | |
county LowCardinality(String) | |
) | |
ENGINE = ReplacingMergeTree(date) | |
ORDER BY (postcode1, postcode2, street, addr1, addr2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment