Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

division on two columns, update same table

Status
Not open for further replies.
Sep 25, 2002
159
US
Is something like this possible? (I know this is not the proper syntax, but this is the idea I have)

UPDATE Table1 SET EUM_Avg = (SELECT (EUM/EUM_Total) AS myAvg FROM Table1) WHERE Table1.ID = 1;
 
Why storing derived/calculated values ?
Have a look here:

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top