DB2 当中Rollup得用法,得一些看法。
摘要:
selectDEPARTMENT,Name,sum(amount)assum,count(*)ascountfromsaleinnerjoinEmployeeonliaohaibing.EMPLOYEE.ID=liaohaibing.SALE.EMPLOYEEIDinnerjoinliaohaibing.DEPARTMENTonliaohaibing.DEPARTMENT.DEPARTMENTID=liaohaibing.EMPLOYEE.DEPARTMENTIDwhereliaohaibing.DEPARTMENT.DEPARTMENTIDin(2,4,5,9)groupbyrollup(D 阅读全文
posted @ 2007-04-02 11:28 小土泥 阅读(1421) 评论(0) 推荐(0) 编辑