extract week from date in sql code example
Example 1: get week day from date in sql
SELECT TO_CHAR(your_table.date_colunm, 'DAY')
FROM your_table;
Example 2: extract weekday from date in sql
SELECT WEEKDAY(date);
SELECT TO_CHAR(your_table.date_colunm, 'DAY')
FROM your_table;
SELECT WEEKDAY(date);