sql fuction take rurtun the day from date code example Example: selecting specific day in colum sql extract(dow from payment_date)