[thelist] SQL 2000 update statement

rudy r937 at interlog.com
Mon Aug 12 21:51:00 CDT 2002


what's the query to create each day's data in the summary table? do you
need to keep the detail rows in the summary table?

if not, try

  insert into summary (custname, ordertotal)
    select custname, sum(orderamt)
  from orders
     group by custname

rudy




More information about the thelist mailing list