Web Development



Please help!!!Query

By alexeye2006 ·
I have a simple Access 2000 database that has a table.this table has gross salary field.i want to calculate income tax from this field based on criteria.because income tax as you all know varies with income please help!!!

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

Try this, case statement

by Tony Hopkinson In reply to Please help!!!Query

Select Income,
Case When [income] < 20000 Then [Income] * 0.2
(20000 * 0.2) + (([Income] - 20000) * 0.4)
as [Income Tax]
From MyTable

For example.

You could really go to town and put the rates and bands in another table. You need to look at if from SQL though not the query builder gui.


Related Discussions

Related Forums