Hi
I have been getting to grips with Base, coming from a MS Access background. I have just installed 6.1 which has “Firebird” as a SQL engine option, and now I’m stuck on something simple.
I have a number of queries that need converting, the simplest example is below. In it’s HSQLDB format
SELECT Top 10 “ClassA”, “ClassB”, “ClassC”, “Date”, “ClassA” + “ClassB” + “ClassC” AS “Total”
FROM “tblData”
ORDER BY “Total” DESC, “Date” ASC
this works fine.
In what I believed is the correct Firebird form:
SELECT First 10 “ClassA”, “ClassB”, “ClassC”, “Date”, “ClassA” + “ClassB” + “ClassC” AS “Total”
FROM “tblData”
ORDER BY “Total” DESC, “Date” ASC
So changed “Top” to “First”. The issue is the Firebird SQL runs fine in design mode “F5”, however if I create a form, it runs and returns the top (First) 10 records correctly and in order but there is no value in the “Total” column.
Obviously done something wrong but for the life of me I can’t find an answer, any help appreciated.