SQL - Advanced Query Patterns
Which SQL condition correctly identifies overlapping periods between two date intervals
(start_a, end_a) and (start_b, end_b)?(start_a, end_a) and (start_b, end_b)?start_a <= end_b AND end_a >= start_b. start_a >= end_b OR end_a <= start_b uses OR and reversed inequalities, which detects non-overlapping intervals. start_a < start_b AND end_a > end_b checks if one range is strictly inside the other, missing partial overlaps. start_a = start_b AND end_a = end_b checks for exact equality, which is too restrictive.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions