Skip to content

Conversation

@K5qu4r3d
Copy link
Contributor

Description

Add a new term entry for SQL Dates' ADDDATE() function.

Issue Solved

Closes #8170.

Type of Change

  • Adding a new entry

Checklist

  • All writings are my own.
  • My entry follows the Codecademy Docs style guide.
  • My changes generate no new warnings.
  • I have performed a self-review of my own writing and code.
  • I have checked my entry and corrected any misspellings.
  • I have made corresponding changes to the documentation if needed.
  • I have confirmed my changes are not being pushed from my forked main branch.
  • I have confirmed that I'm pushing from a new branch named after the changes I'm making.
  • I have linked any issues that are relevant to this PR in the Issues Solved section.

@mamtawardhani mamtawardhani self-assigned this Jan 20, 2026
Copy link
Collaborator

@mamtawardhani mamtawardhani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved in commit b9aed1e.


## Example 1

Let's use the first variation of `ADDDATE`. We'll add a few days to the date `2026-01-16`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid pronouns like "you" and "we" throughtout the PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved in commit 05d1733.

@K5qu4r3d
Copy link
Contributor Author

Redundant examples have been removed in commit bb89565. To compensate, said examples have been reduced to a simple mention in "Example 1".

K5qu4r3d and others added 3 commits January 21, 2026 14:45
Copy link
Collaborator

@mamtawardhani mamtawardhani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR looks good for a second round of review! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Term Entry] SQL Dates: ADDDATE()

2 participants