-
Notifications
You must be signed in to change notification settings - Fork 308
docs: add dynamic date range filtering examples to WHERE clause #6278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Copilot <[email protected]>
…:influxdata/docs-v2 into docs/add-dynamic-date-filtering-examples
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds documentation for dynamic date range filtering in SQL WHERE clauses, providing practical examples for querying time-series data with relative time periods. The addition helps users understand how to create queries that automatically adjust based on the current time.
Key changes:
- Adds three new examples for dynamic date filtering: yesterday, last 24 hours, and current week
- Incorporates SQL time functions like NOW(), DATE_TRUNC(), and INTERVAL for relative time calculations
- Includes explanatory content in expandable sections to clarify the logic behind each query
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Closes #4852