How to query multiple SUMs of the same item using SQL in iReport

后端 未结 3 1989
甜味超标
甜味超标 2021-01-07 10:40
  • I\'m creating a JasperReport using iReport, and as such, I\'m limited* to one SQL query.

  • I have a table \'statistics\', with a \'name\' (VARCHAR), \

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-07 11:07

    You have 2 options:

    1) Remove the 'as' part of each query and then it will come as 1 column that won't have a name

    2) Create a temp table and insert those rows into a temp table and then query the temp table

提交回复
热议问题