SQLEXTRACTdatetutorial

What is EXTRACT in SQL? Year, month, day from a date for beginners

EXTRACT pulls a piece out of a date: year, month, day, hour, day of week. Plain words: how to group by year/month, filter by weekday, count seconds via EPOCH. Compared with DATE_TRUNC and PostgreSQL/MySQL differences.

1 λεπτά ανάγνωσηςSQL · EXTRACT · date · tutorial

EXTRACT is the standard SQL way to pull a single component out of a date or timestamp. Year, month, day, hour, day of week — anything you can name in a date can come out as a number.

This article is currently in Russian. The full English translation is on the way.

Εξασκηθείτε σε πραγματικές ασκήσεις

Λύστε ασκήσεις στην εξάσκηση SQL με άμεση βαθμολόγηση και υποδείξεις.

Άνοιγμα εξάσκησης