I have this view my mysql database
DROP VIEW IF EXISTS time_all;
CREATE VIEW `time_all` AS
SELECT `scans`.`datetime` FROM `time_clock`.`scans`
ORDER BY `scans`.`datetime` ASC;
I want to add unique rank value for each row in this view, can anyone tell me how to do that?