-1

Hie lets assume we have the following table

TABLE NAME : DRINGE
__________________________________________________

ID  PRODUCT MACHINE MASS    STATE
01  1.76ann HRB 50  inlet
02  1.76ann HRB 38  inlet
03  2.55ann GUDO    45  outlet
04  95mm x 4    GUDO    36  dispatched
___________________________________________________

And the following formula:

(inlet –outlet ) +outlet – dispatched = [resulted displayed to new view]

And the values to be substituted are:


INLET = 50 , 38
OUTLET=45
DISPATCHED = 36

So substituting in the above formula

[(inlet –outlet ) +outlet – dispatched = [resulted displayed to new view]

We get this

(50+38 – 45 ) + 45 – 36 = 52 

What I want is for the result ie 52 to be displayed in an sql view like the following view

Dringe VIEW
_____________
Total_summary|
_____________|
 52          |
_____________|

. Does anyone have any idea of an sql query I can use to do this ? I rily need your help am stuck again, thanx in advance.

4

3 に答える 3