Scripting Calculation / Table Creation Problem [message #6680] |
Thu, 01 May 2003 15:11 |
Rudy
Messages: 12 Registered: March 2002
|
Junior Member |
|
|
I have created the following database, but am having problems in calculating the PROFIT. I was told not to to add the column in the table for PROFIT.
The question: PRINT ITEMNAME, COST PRICE, QUANITITY, PROFIT (PROFIT =(PRICE * QUANTITY) - (COST * QUANTITY))
I believe this is the first part of the script: SELECT ITEMNAME, COST, QUANTITY, PROFIT
But where do you put the calculation:
Last part should be the name of the table: FROM TOY2;
Appreciate any help.
Rudy
|
|
|
|
|