LyraLearn AI Learning Platform
Exams
← Back to the lesson
Module 4 Β· Quiz

"Functions on Columns and Date Ranges"

1. What is the correct SQL pattern to filter orders by a date range for a report?
2. Why should `BETWEEN` not be used on a datetime column?
3. What is the benefit of using a persisted computed column for filtering on a calculated value like 'YEAR(OrderDate)'?
4. How should date literals be formatted to ensure clarity and prevent misinterpretation?