Difficulty: Easy
Correct Answer: Invalid (case also matters for quoted identifiers and some collations)
Explanation:
Introduction / Context:
Oracle SQL treats unquoted identifiers and keywords case-insensitively, but case sensitivity is still significant in several areas. The statement that it matters “only inside strings” is incomplete and therefore incorrect.
Given Data / Assumptions:
Concept / Approach:
Unquoted identifiers are folded to uppercase and are case-insensitive. However, "MyTable" is distinct from MYTABLE and must be referenced precisely if created with quotes. Furthermore, case can influence string comparison outcomes depending on collation settings (for example, BINARY vs. case-insensitive collations). Hence, the claim that only strings care about case omits the quoted identifier scenario and collation effects.
Step-by-Step Solution:
Verification / Alternative check:
DESCRIBE "Emp" vs. DESCRIBE EMP shows the necessity of exact case when quotes were used. String comparison functions (e.g., UPPER) normalize case explicitly.
Why Other Options Are Wrong:
Common Pitfalls:
Creating quoted identifiers unintentionally; mixing case in client code; assuming all databases behave the same regarding case.
Final Answer:
Invalid (case also matters for quoted identifiers and some collations)
Discussion & Comments