KnowledgeBoat Logo

Informatics Practices

What will be returned by the given query ?

SELECT month('2020-05-11');
  1. 5
  2. 11
  3. May
  4. November

SQL Queries

1 Like

Answer

5

Reason — The MONTH() function extracts the month component from a date passed. For the date '2020-05-11', since the month is 05, it returns 5.

Answered By

1 Like


Related Questions