From the course: Access 2019: Queries

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Use mathematical operators

Use mathematical operators

From the course: Access 2019: Queries

Start my 1-month free trial

Use mathematical operators

- [Instructor] One of the key factors in creating a clean robust database is knowing what data you need to store and what data you can derive or create from other records. For instance if we think about how a payroll database might work, the number that we're after is how much the employee earned at the end of a two week pay period. But will the dollar amount appear in any of our tables? I'd say probably not. More than likely a payroll database will simply include a record of the employee's hourly wage or salary and another record of the number of hours worked at each shift. When cutting the checks the payroll department simply adds up the number of hours worked during that pay period, multiplies that by the hourly wage and gets the total for the check. By using some simple mathematical operations, in this case addition and multiplication, the payroll department is able to derive the value of the check even though it doesn't actually appear anywhere on the database. The query design…

Contents