Hi There
By MOD(), I persume you mean that you want to return a remainder.
You can do this in SQL by using the % operator.
This example is from BOL .....
This example returns the book title number and any modulo (remainder) of dividing the price (converted to an integer value) of each book into the total yearly sales (ytd_sales * price).
USE pubs
GO
SELECT title_id,
CAST((ytd_sales * price) AS int) %CAST(price AS int) AS Modulo
FROM titles
WHERE price IS NOT NULL and type = 'trad_cook'
ORDER BY title_id
GO
Hope this helps. Bernadette