Skip to content

Commit

Permalink
Update postgresqltutorial broken links (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlagn authored Oct 21, 2024
1 parent 300cc54 commit 90cb6f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content/04-postgresql/11-date-types.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Depending on the requirements of a system, you may need a date formatted in a sp

### Get the interval between two dates

PostgreSQL allows you to get the [interval](https://www.postgresqltutorial.com/postgresql-interval/) between two dates using the `-` operator. Using this operator allows you to calculate things like the tenure of an employee or time since the publishing of a book.
PostgreSQL allows you to get the [interval](https://www.postgresqltutorial.com/postgresql-tutorial/postgresql-interval/) between two dates using the `-` operator. Using this operator allows you to calculate things like the tenure of an employee or time since the publishing of a book.

In our example we want to find how many days it's been since Joyce's <u>Ulysses</u> was published by subtracting the current date from the `published_date`:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ WHERE EXISTS ( subquery );

<details><summary>How do I delete duplicate rows in PostgreSQL?</summary>

There are [several methods for deleting duplicate rows](https://www.postgresqltutorial.com/how-to-delete-duplicate-rows-in-postgresql/) in PostgreSQL. You can use a `DELETE USING` statement to check if two different rows have the same value and then delete the duplicate.
There are [several methods for deleting duplicate rows](https://www.postgresqltutorial.com/postgresql-tutorial/how-to-delete-duplicate-rows-in-postgresql/) in PostgreSQL. You can use a `DELETE USING` statement to check if two different rows have the same value and then delete the duplicate.

In addition, you can use a subquery to delete duplicates or by using an immediate table with the listed steps:

Expand Down

0 comments on commit 90cb6f5

Please sign in to comment.