Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch Topic

how to order by a sum in mysql

how to order by a sum in mysql  using -'sql,mysql,sql-order-by'

I have a table: "ID name c_counts f_counts "

and I want to order all the record by sum(c_counts+f_counts)
but this doesn't work:

SELECT * FROM table ORDER BY sum(c_counts+f_counts) LIMIT 20;

asked Sep 24, 2015 by r3tt
0 votes

Related Hot Questions

Government Jobs Opening