Hi
is there code to count how many rows in the db i have
for example if i made database called (school)
and i have table ( student)
and i wana to know how many students i have in this table
i know i can use while but is there way to do it with less trafic to my db if i have 10000 rows
another thing
if i have in the table stundents the field (grade)
i wana to count the average os these grades
AV grade = adds of the grads / num of students
can i get the adds of grads in easy way without use while loop ?