I have this code in access that runs, but it is not giving me a unique row number. I think it's because the data set contains so many duplicate values. Is there a way to write this code so that i can get a unique row number?
Code:
SELECT A.*,
(SELECT COUNT(*) FROM QUIKVALF WHERE A.MPOLICY>=MPOLICY) AS RowNum
FROM [QUIKVALF] AS A ORDER BY A.MPOLICY ;
Thank you