Here's an example that uses the Order Details table from the Northwind
sample data base. In order to keep the example simple, I've ignored the
Discount field in the Order Details table, and hard-coded the VAT rate into
the query. In a real-world app, there would likely be a VAT Codes table that
would need to be joined into the query.
SELECT [Order Details].UnitPrice, [Order Details].Quantity,
([UnitPrice]*[Quantity])*0.175 AS VAT
FROM [Order Details];
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.