I am newer to sql I have a table:
MyTable
column1 column2
-----------------
5 3
2 2
I need a query that will give me back all of the rows where column1 * column2 > 10
?
I am newer to sql I have a table:
column1 column2
-----------------
5 3
2 2
I need a query that will give me back all of the rows where column1 * column2 > 10
?
SELECT * FROM MyTable WHERE (column1 * column2) > 10;
You can specify as many columns as you want (within reason) and apply math to them in the WHERE
clause.
If I understand you correctly you can do this in the where clause ie select * from mytable where column1*column2 > 10