使用条件语句连接表

时间:2014-03-30 07:37:42

标签: mysql sql

我有这样的mysql表:

enter image description here

结果是:

enter image description here

coloumn total = nilai1 + nilai2 coloumn saran = - iF total> =((max(total)-min(total))+ min(total)然后是mayor,minor来自表1。 - 除了表2中的butuh。 但是,max(总)和min(总)只计算相同的Bidang。

如何在结果中显示coloumn saran?

0 个答案:

没有答案
相关问题