Do we have ROW_NUMBER function in MS Access? If it has then please let me know any syntax for it as I am stuck here. I have tried forums but I get sql server syntax. Following is my query:
select
ROW_NUMBER() OVER (ORDER BY t.TID) AS uni ,
t.TSource as [Source],
t.TText as [Text],
u.Name as [UserId],
u.Image_Url as [ImageFilePath],
from table1 t inner join table2 u on t.UserId = u.UIds
but it gives syntax error.
In Access SQL we can sometimes use a self-join to produce a rank order. For example, for [table1]
the query
produces
and we can use that as a subquery in our JOIN to the other table
producing something like