rony_78 Posted September 11, 2012 Share Posted September 11, 2012 I am not programmer just learning, I have a table with ten columns; I want to multiply row by row between two columnsCol2 * col4 = col5 Col6 * col7 = col8 col 5 + col8 = col 9I know how to get this part Col2 * col4 = col5 Col6 * col7 = col8How do I write a query that will add another column with col5 + col8 = col9 SELECT col2, col4, col2 * col4 AS col5, col6, col7, col6 * col7 AS col8FROM Table1 WHERE < criteria> thanks in advance Link to comment Share on other sites More sharing options...
niche Posted September 11, 2012 Share Posted September 11, 2012 That would be an UPDATE. It's pretty simple to write. Let us know if you still need help. http://w3schools.com/sql/sql_update.asp Link to comment Share on other sites More sharing options...
rony_78 Posted September 13, 2012 Author Share Posted September 13, 2012 Thanks - Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now