SQL- answer to DBText


I've just started programming in Delphi 1.0, and i wonder:

How can i Query a database for f.ex. the sum() of a colonne and let the
answer be printed to a DBText?
And will this DBText be updated when table is updated while the
application is still running?

Erik Ulven.