🎴 Flashcard Mode
Ab Initio Data Processing
Card1 / 20
Mastered0
Review0
QuestionClick to flip
What kind of DML Operator is the following statement using: ( sequence_cd <= 10) ? "Valid" : "Invalid"
AnswerClick to flip back
A
ternary
💡 Explanation:
The ternary operator takes three operands: a condition, a value to return if the condition is true, and a value to return if the condition is false. In this expression, sequence_cd <= 10 is the condition, "Valid" is returned if true, and "Invalid" if false. Binary operators take two operands (like +, -), and unary operators take one (like -).