extract - allows us to extract parts of a date
SELECT extract(dow from payment_date) AS dow
FROM payment
GROUP BY dow
LIMIT 1 — from is lowercase so we don't confuse FROM table with from column
We use cookies to understand our websites traffic and offer our website visitors personalized experience. To find out more, click ‘More Information’. In addition, please, read our
Privacy policy.