The DAY()
function returns the day of the month when given a date sent as a parameter.
Figure 1 shows a visual representation of the DAY()
function.
Student ID | Student Name | Student Admission Date |
1 | David | 2000-07-14 |
2 | Luiss | 2002-08-16 |
3 | Harvey | 2005-04-23 |
4 | Lucy | 2010-01-30 |
5 | Andrew | 2011-10-01 |
SELECT *, DAY(studentAdmissionDate) as DAYfrom Students;