QuestionQ170Verified/Restricting and Sorting DataCopy linkReport a problemAsk AstroTutorSave questionConsider these two queries: Exhibit: Exhibit: Which statement is true about the two queries?APerformance would improve in query 2 only if there are null values in the CUST_CREDIT_LIMIT columnBPerformance would degrade in query 2CThere would be no change in performanceDPerformance would improve in query 2Show AnswerAnswerExplanationIN (1000, 2000, 3000) is an equal-to-any-member test and is logically equivalent to the three equality conditions joined with OR. Rows with a NULL CUST_CREDIT_LIMIT do not match either predicate, so the two forms have no inherent performance difference.Learn moreOracle Database SQL Language Reference — IN ConditionShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion