QuestionQ219Verified/Using the Set OperatorsCopy linkReport a problemAsk AstroTutorSave questionWhich two statements are true about an SQL statement that uses SET operators, such as UNION?Choose twoAThe data type group of each column returned by the second query must match the data type group of the corresponding column returned by the first query.BThe names and number of columns must be identical for all select statements in the query.CThe data type of each column returned by the second query must be implicitly convertible to the data type of the corresponding column returned by the first query.DThe data type of each column returned by the second query must exactly match the data type of the corresponding column returned by the first query.EThe number, but not names, of columns must be identical for all select statements in the query.Show AnswerAnswerExplanationFor Oracle compound queries that use set operators, corresponding expressions in the select lists must match in number and belong to the same data type group, such as numeric or character. The column names do not have to be the same.Learn moreOracle Database SQL Language Reference: The Set OperatorsShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion