yeap actually simplier... INSERT t1 SELECT a as a , b as c ,c as b FROM t1
TEST b4 you do it WG -----Original Message----- From: Tangorre, Michael [mailto:[EMAIL PROTECTED] Sent: 03 March 2003 14:44 To: CF-Talk Subject: RE: OT SQL Question SQL 7 does this still apply? -----Original Message----- From: webguy [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 9:42 AM To: CF-Talk Subject: RE: OT SQL Question SQL server ? use a format like this.. INSERT author_sales EXECUTE (' SELECT ''EXEC STRING'', authors.au_id, authors.au_lname, SUM(titles.price * sales.qty) FROM authors INNER JOIN titleauthor ON authors.au_id = titleauthor.au_id INNER JOIN titles ON titleauthor.title_id = titles.title_id INNER JOIN sales ON titles.title_id = sales.title_id WHERE authors.au_id like ''8%'' GROUP BY authors.au_id, authors.au_lname ') wg -----Original Message----- From: Tangorre, Michael [mailto:[EMAIL PROTECTED] Sent: 03 March 2003 14:36 To: CF-Talk Subject: OT SQL Question Can someone assist me with a quick SQL statement. I have a table with 3 columns: A, B, C (A would be the primary key) I need to swap the values in column B with the values in column C and vice versa. TIA, Mike ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

