Addition ( + )

What is it?

The Addition operator adds two numeric values together, producing a single numeric result. The result of this type of equation is known as the Sum.

What is the Syntax?

Addition operators are utilised with the following syntax:

Operand1 + Operand2

Why might I want to use this?

  • Adding interest to a bank balance.
  • Incrementing a counter to keep track of how many times someone has visited a web page.
  • Adding journey time to the current time to give an estimated time of arrival.

In the following example, you want to create a target total, which is the current number of customers plus 50. The following example adds 50 to the total number of current customers. This result of the query in this example assumes that there are 90 current customers listed in the Customers table.

TargetTotal := CurrentCustomers + 50

If the value of your CurrentCustomers variable is 90, the result of this sum expression will be 140.

 

<< Previous: Arithmetic Operators | Next: Subtraction ( - ) >>