Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-206

Include ORDER BY cols in SELECT clause

XMLWordPrintable

      SourceForge Submitter: scoy .
      Some databases, Oracle in particular, require that columns named
      in an ORDER BY clause be included in the SELECT clause when
      SELECT DISTINCT is used.

      Here is some text from current Oracle documentation:

      Restrictions on the order_by_clause:

      • If you have specified the DISTINCT operator in this statement,
        then this clause cannot refer to columns unless they appear in the
        select list.
      • An order_by_clause can contain no more than 255 expressions.

      This can be worked around using on-find loading with load groups,
      but it sure would be useful if JBoss managed it for us.

              starksm64 Scott Stark (Inactive)
              sourceforge-user SourceForge legacy user (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: