QuestionQ253Verified/Displaying Data from Multiple TablesCopy linkReport a problemAsk AstroTutorSave questionWhich two join conditions within a FROM clause are non-equijoins?Choose twoAtable1 JOIN table2 USING (column1, column2)Btable1 JOIN table2 ON (table1.column BETWEEN table2.column1 AND table2.column2)Ctable1 NATURAL JOIN table2Dtable1 JOIN table2 ON (table1.column >= table2.column)Etable1 JOIN table2 ON (table1.column = table2.column) WHERE table2.column LIKE ‘A%’Show AnswerAnswerExplanationNon-equijoins use comparison predicates other than equality to match rows. A BETWEEN predicate matches a value against a range, and a >= predicate matches based on an inequality; neither is an equality join condition. USING and NATURAL JOIN use matching common columns, while = is explicitly an equality predicate.Learn moreJOIN | Snowflake DocumentationWorking with joins | Snowflake DocumentationShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion