Jump to content
rony_78

multiply two columns

Recommended Posts

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...