Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 Work out a discount based on a percentage?

Author  Topic 

jackmac
Starting Member

2 Posts

Posted - 2005-09-30 : 05:48:44
Hi all,

Hopefully a nice easy one to begin with. I have an access database which I use to build my web pages - I use sql to extract products which meet certain criteria then the pages are automatically generated. I can extract the data without any problem. An example I use is shown below:

===================================================
SELECT * FROM products WHERE products.group = 'LCD-HDTV' AND status = 'LIVE' AND tradeprice > 0 AND description3 > '' ORDER BY diagonal, tradeprice, description3
===================================================

I now want to get it to work out a discount of 1% on the products shown using the tradeprice field. I've tried many times using the SELECT and SUM functions but am not getting the syntax correct. Any help would be very much appreciated.

TIA

Jackmac

AndrewMurphy
Master Smack Fu Yak Hacker

2916 Posts

Posted - 2005-09-30 : 08:39:26
select tradeprice, tradeprice @ 0.99 from products.group
...etc

otherwise post sample input data and sample (matching) expected results
Go to Top of Page
   

- Advertisement -