Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

join.txt 556B

1234567891011121314151617
  1. SELECT
  2. left_table.col1 AS l_col1,
  3. left_table.col2 AS l_col2
  4. FROM
  5. VALUES (0, 10), (1, 11), (2, 12), (3,13), (4, 14), (5, 14) AS left_table
  6. ANTI JOIN
  7. VALUES (0, 10), (2, 12), (4, 14), (6, 16) AS right_table
  8. ON left_table.col1 = right_table.col1;
  9. SELECT
  10. left_table.col1 AS l_col1,
  11. left_table.col2 AS l_col2
  12. FROM
  13. VALUES (0, 10), (1, 11), (2, 12), (3,13), (4, 14), (5, 14) AS left_table
  14. LEFT SEMI JOIN
  15. VALUES (0, 10), (2, 12), (4, 14), (6, 16) AS right_table
  16. ON left_table.col1 = right_table.col1;