Hello All,
I want to generate row numbers on a Paradox table.
The following code works on my SQL server but not on Paradox.
SELECT TT.Hours, (SELECT COUNT(*)
FROM "TopTenTable.DB" TT2
WHERE TT2.Hours <= TT.Hours
) As Num
FROM "TopTenTable.DB" TT
ORDER BY TT.Hours
The values for 'Num' are zero (0).
Does anyone know if Paradox Local SQL has a problem with correlated sub-queries of this type.
Any other suggestions of how I might calculate the row number would also do the trick, using LocalSQL or QBE. I'm not fussy.
Thanks in advance,
John