ZeroShade Posted January 26, 2007 Share Posted January 26, 2007 I'm having a brain ######. I need the the script to show all of the data but in the last column i need it to muliply what it has there already by another amount in a nother column but same row. And I need this done for all of the rows... can somebody blow the ###### out of my head? Link to comment Share on other sites More sharing options...
pulpfiction Posted January 26, 2007 Share Posted January 26, 2007 Try this, First * will display all the columns in the table and product of colname1 and colname2 will be at the end.... SELECT *, colname1 * colname2 AS TempVarFROM TablaName 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