Hello everyone, i as creating a database of students, but then i am stuck on how i can get Count number of students in a specific yearlevel.
bellow is my codes but only results 1 considering i have already save more than 20 students.
testCount = db:exec("SELECT COUNT(*) FROM Students WHERE YearID = '"..sYearID.."' ) ")
result = Dialog.Message("Notice", tostring(testCount), MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
can anyone help me get the correct syntax to count all students in specific year?
Thank you for your help...
bellow is my codes but only results 1 considering i have already save more than 20 students.
testCount = db:exec("SELECT COUNT(*) FROM Students WHERE YearID = '"..sYearID.."' ) ")
result = Dialog.Message("Notice", tostring(testCount), MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
can anyone help me get the correct syntax to count all students in specific year?
Thank you for your help...