Performance tuning on INNER JOIN with BETWEEN Condition
问题 I have two table's namely tbl_Small and tbl_Large . Both the table's I have stored in Microsoft Azure and querying from Microsoft SQL Server . --Table 1: Tbl_Small CREATE TABLE tbl_Small ( cola int ); INSERT INTO tbl_Small VALUES(1234),(123),(34); --1000 rows --Table 2: tbl_Large CREATE TABLE tbl_Large ( ID bigint identity(1,1), cola int, colb int, colc varchar(100) ); INSERT INTO tbl_Large(cola,colb,colc) VALUES(0,140,'A'),(150,200,'C'),(1000,15000,'D'); --30 million rows I want to get large