Returns the name of the day of the week from a date.
DAYNAME( date-expression )
date-expression The date.
VARCHAR
The English names are returned as: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
SQL/2008 Vendor extension.
The following statement returns the value Saturday.
SELECT DAYNAME ( '1987/05/02' );