This question pertains really more to Ultra Dev but I've created the database in Microsoft Access.
I'm trying to obtain results where they are sorted by creation_date. This works fine in Access. However when I use the same SQL statment in Ultradev (I insert the line 'WHERE username='MM_Username' so the results are filtered according to the logged in user) I get the appropriate results but the data isn't ordered by the creation_date. Essentially the SQL syntax (below) seems right to me and I was wondering where I might have messed up.
Thank you in advance to anyone who helps me.
Jeevenze
SELECT tblticketinfo.ticket_number, tblticketinfo.name, tblticketinfo.short_title, tblticketinfo.status, tblticketinfo.severity, tblticketinfo.creation_date, Count(tblcommentslog.ticket_number) AS CountOfTicket_Number
FROM tblcommentslog RIGHT JOIN tblticketinfo ON tblcommentslog.ticket_number = tblticketinfo.ticket_number
WHERE username='MM_Username'
GROUP BY tblticketinfo.ticket_number, tblticketinfo.name, tblticketinfo.short_title, tblticketinfo.status, tblticketinfo.severity, tblticketinfo.creation_date
ORDER BY tblticketinfo.creation_date DESC;
I'm trying to obtain results where they are sorted by creation_date. This works fine in Access. However when I use the same SQL statment in Ultradev (I insert the line 'WHERE username='MM_Username' so the results are filtered according to the logged in user) I get the appropriate results but the data isn't ordered by the creation_date. Essentially the SQL syntax (below) seems right to me and I was wondering where I might have messed up.
Thank you in advance to anyone who helps me.
Jeevenze
SELECT tblticketinfo.ticket_number, tblticketinfo.name, tblticketinfo.short_title, tblticketinfo.status, tblticketinfo.severity, tblticketinfo.creation_date, Count(tblcommentslog.ticket_number) AS CountOfTicket_Number
FROM tblcommentslog RIGHT JOIN tblticketinfo ON tblcommentslog.ticket_number = tblticketinfo.ticket_number
WHERE username='MM_Username'
GROUP BY tblticketinfo.ticket_number, tblticketinfo.name, tblticketinfo.short_title, tblticketinfo.status, tblticketinfo.severity, tblticketinfo.creation_date
ORDER BY tblticketinfo.creation_date DESC;