Seems you don't understand your teacher. You have to create two
User Defined Functions (UDF)[
^].
Quote:
1. The TaxRate UDF provides the tax rate based on a ShipCountry and returns a FLOAT value.
If the ShipCountry starts with a letter in the range
A-J the tax rate is .04
K-P the tax rate is .03
Q-Z the tax rate is .025
2. The TaxAmount UDF provides the tax due. It takes two values, a SalesAmount and a TaxRate. The SalesAmount is of the MONEY data type and the TaxRate is of the FLOAT data type. The UDF returns a MONEY value.
Finally, you have to provide a query which uses that 2 UDF's.
Follow the link i provided to find out how to create UDF.