I have a query that pulls the correct db data form but does not return me a month from the timestamp. In the timestamp column, I get a null value, although the timestamp is exsists. These are stores in the database like bigInt (this is not my idea).
I need a date returned as follows:
Course | fcpd | Month 216 0.5 04
but I get:
Course | fcpd | Month 216 0.5 null SELECT mdl_quiz.course, mdl_quiz.fcpd, MONTH(mdl_quiz_grades.timemodified) as Month FROM mdl_quiz INNER JOIN mdl_quiz_grades ON mdl_quiz.course = mdl_quiz_grades.quiz WHERE mdl_quiz_grades.userid = 9428 AND mdl_quiz.course = 215
Can someone please indicate where I am going wrong?
source share