Reduction in the number of records using range join
问题 Following the my question I have the following tables the first (Range) includes range of values and additional columns: row | From | To | Country .... -----|--------|---------|--------- 1 | 1200 | 1500 | 2 | 2200 | 2700 | 3 | 1700 | 1900 | 4 | 2100 | 2150 | ... The From and To are bigint and are exclusive. The Range table includes 1.8M records. Additional table (Values) contains 2.7M records and looks like: row | Value | More columns.... --------|--------|---------------- 1 | 1777 | 2 | 2122