tsql select day of month code example Example: selecting specific day in colum sql extract(dow from payment_date)