Answer the question
In order to leave comments, you need to log in
I want the month and day columns to give out such values: 01,02,03 and so on, but not just 1,2,3 and so on, how can I do this?
Here is my request:
SELECT
Extract(YEAR from date::date ) AS year
, Extract(MONTH from date::date ) AS month
, Extract(DAY from date::date ) AS day
FROM sales;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question