Month WorkerID Salary
Jan JAMES 950.50
Feb JAMES 880.00
Mar JAMES 700.00
Jan PETER 1200.50
Feb PETER 1280.00
Mar PETER 1150.00
Jan HELEN 885.70
Feb HELEN 790.40
Mar HELEN 690.80
Suppose I want to obtain the sum total of Helen's Salary, how shall I go about this? I want to pass this sum value to delphi variable. Do I use a MyQuery component with a SQL like 'Select Sum from WorkerID = HELEN'? Or is there another way to go about this?