Add SQL Dates entry for 'ADDDATE()'#8180
Open
K5qu4r3d wants to merge 10 commits intoCodecademy:mainfrom
Open
Conversation
mamtawardhani
requested changes
Jan 20, 2026
Collaborator
mamtawardhani
left a comment
There was a problem hiding this comment.
Hey @K5qu4r3d, the PR looks good. However, I've suggested a few changes. And also make sure that you keep only 3 examples maximum. Could you please the suggested changes as well as remove any 2 examples?
Make sure each example is different than the other to showcase various use cases of the term. Let me know once you've made the changes 😄
| - 'paths/analyze-data-with-sql' | ||
| --- | ||
|
|
||
| The **`ADDDATE`** function is an [operator](https://www.codecademy.com/resources/docs/sql/operators). It adds a time interval to a given date or datetime value and returns the result. |
Collaborator
There was a problem hiding this comment.
Suggested change
| The **`ADDDATE`** function is an [operator](https://www.codecademy.com/resources/docs/sql/operators). It adds a time interval to a given date or datetime value and returns the result. | |
| **`ADDDATE()`** in SQL returns a new date by adding a specified time interval (such as days, months, or years) to a given date. |
|
|
||
| ## Example 1 | ||
|
|
||
| Let's use the first variation of `ADDDATE`. We'll add a few days to the date `2026-01-16`. |
Collaborator
There was a problem hiding this comment.
Avoid pronouns like "you" and "we" throughtout the PR
Contributor
Author
|
Redundant examples have been removed in commit bb89565. To compensate, said examples have been reduced to a simple mention in "Example 1". |
Updated the description and examples for the ADDDATE() function in MySQL documentation.
mamtawardhani
approved these changes
Jan 28, 2026
Collaborator
mamtawardhani
left a comment
There was a problem hiding this comment.
The PR looks good for a second round of review! 🚀
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add a new term entry for SQL Dates'
ADDDATE()function.Issue Solved
Closes #8170.
Type of Change
Checklist
mainbranch.Issues Solvedsection.