SQL: Divide all columns by another column. Also divide all columns by aggregate function(min, max, sum, count, etc.) : I'm guessing this is not possible without defining a function. The idea is that you have a table like

table:

    ----------------
    | A | B | Total|
    |---|---|------|
    | 1 | 2 |  3   |
    | 4 | 5 |  9   |
    | 6 | 7 | 13   |
    ----------------

    select */Total from table
    select */(select max(*) from table) from table