Hi
I'm trying to update Table1 from Table2, joining on key columns, but I want to update Table1 with the sum of data from Table2, e.g. something like
update Table1 set col2 = (select sum(col2) from Table2 where Table1.col1=Table2.col1.
Any ideas how to do this? I can do it in Sybase but I'm...
don't know if this helps, but another way to do this is extract data with another separator ( e.g. use -s"~" in sql command). Then load into Excel using this as separator. ( we have to do this as we need to keep comma's in the data but suppose it's not important for you)
I've had a long running argument with a colleague about truncate table. Is it (a) logged (b) minimally logged or (c) non-logged.
I said it was (b) as i thought you could truncate table and still recover using transaction log dumps, but he reckoned it would screw up transaction dump (like...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.