I am developing a project using xampp SQL/APACHE to host a sql backend which I connect to an access front end using linked tables.
I have an audit table that tracks new records, deleted records, and changes from a table, and will add a new row when any of these instances occur, adding a timestamp and a changetype (new, delt, or chg). I did this coding in VBA.
This leaves me with an audit table (which i will use to generate invoices).
I want to use the ROW_NUMBER() function to rank records with the same ID by date, and then I will select the record with the highest rank to create a view with the most recent records. However, I cannot get ROW_NUMBER() to work in a query in my MySQL Workbench query editor, nor can I get it to work as a recordset declaration.
Does ROW_NUMBER() not work in this instance? I understand that it is a mysql server window function, but I figured that it would work in this implementation.
Thanks,
I have an audit table that tracks new records, deleted records, and changes from a table, and will add a new row when any of these instances occur, adding a timestamp and a changetype (new, delt, or chg). I did this coding in VBA.
This leaves me with an audit table (which i will use to generate invoices).
I want to use the ROW_NUMBER() function to rank records with the same ID by date, and then I will select the record with the highest rank to create a view with the most recent records. However, I cannot get ROW_NUMBER() to work in a query in my MySQL Workbench query editor, nor can I get it to work as a recordset declaration.
Does ROW_NUMBER() not work in this instance? I understand that it is a mysql server window function, but I figured that it would work in this implementation.
Thanks,