Thread: Query update
View Single Post
  #1 (permalink)  
Old 2006-09-11, 12:30 PM
carmelomcc carmelomcc is offline
Junior Member
 
Join Date: Sep 2006
Posts: 2
carmelomcc is on a distinguished road
Default Query update

i amt rying to subtract what is in an temporary table/column from a regular table/column, then i want to insert that data into another column in the table.

temporary table name = xxx
temporary column name = used_size

Normal table name = chk_info

Table column = used_size

Table column to drop the data into = daily_chg


Code sample:

update chk_info set daily_chg =(xxx.used_size-chk_info.used_size);

Last edited by carmelomcc; 2006-09-11 at 12:43 PM.
Reply With Quote
Sponsored Links