SQL - SQLCODE's - Códigos negativos -481


Volta a página anterior

Volta ao Menu Principal


Desenvolvido por DORNELLES Carlos Alberto - Analista de Sistemas - Brasília DF. - cad_cobol@hotmail.com

SQLCode -481

   
 
  • Causa
    • THE GROUP BY CLAUSE CONTAINS element-1 NESTED WITHIN element-2.

      The following types of nesting are not allowed within a GROUP BY clause:
      • CUBE within CUBE, ROLLUP, or grouping-expression-list
      • ROLLUP within CUBE, ROLLUP, or grouping-expression-list
      • () - sometimes referred to a grand-total - within CUBE, ROLLUP, or grouping-expression-list
      • GROUPING SETS within GROUPING SETS, CUBE, ROLLUP, or grouping-expression-list
      • CUBE, ROLLUP, () - sometimes referred to a grand-total, GROUPING SETS within any function, CASE expression, or CAST specification
      In some instances, the value *N will be provided for element-2.
      In this case *N represents one of CUBE, ROLLUP, GROUPING SETS, or grouping-expression-list.
  • Ação do sistema
    • The statement cannot be processed.
  • Resposta ao Desenvolvedor
    • Modify the GROUP BY clause to remove the nesting identified by element-1.

      SQLSTATE: 428B0

© Copyright IBM Corp.