Announcement

Collapse
No announcement yet.

Group By Zusätze rollup und cube

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Group By Zusätze rollup und cube

    Hi Folks,

    Die Zusätze ROLLUP und CUBE bei Group by wäre das was ich gerade brauche für mein Querry.

    Ich habe eine Oracle 10g. aber diese Zusätze werde gar nicht erkannt.

    und der schmeißt mir folgende Fehlermeldung: ORA-00933: SQL command not properly ended

    Weiß jemand woran das liegt?

    Grüße!

  • #2
    bist du sicher?
    http://www.muniqsoft.de/tipps/sql/sql1.htm

    hast du ein Beispiel?

    Comment


    • #3
      Originally posted by vinzsanity View Post
      Hi Folks,

      Die Zusätze ROLLUP und CUBE bei Group by wäre das was ich gerade brauche für mein Querry.

      Ich habe eine Oracle 10g. aber diese Zusätze werde gar nicht erkannt.

      und der schmeißt mir folgende Fehlermeldung: ORA-00933: SQL command not properly ended

      Weiß jemand woran das liegt?

      Grüße!
      - JA : ORA-00933: SQL command not properly ended :-)

      Nein, im ernst, kannst du mal das SQL posten ?

      Comment


      • #4
        Hi,

        meine Querry sieht ungefähr so aus:

        select tab1.a1, tab1.b1, tab1.c1, tab2.a2, tab2.b2, tab3.a3,
        tab3.b3 from tab1
        JOIN tab2 ON tab1.ID = tab2.ID
        JOIN tab3 ON tab1.ID = tab3.ID
        GROUP BY ROLLUP tab1.a1, tab1.b1, tab1.c1, tab2.a2, tab2.b2, tab3.a3,
        tab3.b3 order by tab1.a1;

        Grüße

        Comment


        • #5
          Originally posted by vinzsanity View Post
          Hi,

          meine Querry sieht ungefähr so aus:

          select tab1.a1, tab1.b1, tab1.c1, tab2.a2, tab2.b2, tab3.a3,
          tab3.b3 from tab1
          JOIN tab2 ON tab1.ID = tab2.ID
          JOIN tab3 ON tab1.ID = tab3.ID
          GROUP BY ROLLUP tab1.a1, tab1.b1, tab1.c1, tab2.a2, tab2.b2, tab3.a3,
          tab3.b3 order by tab1.a1;

          Grüße
          Versuchs mal so:

          Code:
          select tab1.a1, tab1.b1, tab1.c1, tab2.a2, tab2.b2, tab3.a3,
          tab3.b3 from tab1 
          JOIN tab2 ON tab1.ID = tab2.ID
          JOIN tab3 ON tab1.ID = tab3.ID
          GROUP BY ROLLUP(  tab1.a1, tab1.b1, tab1.c1, tab2.a2, tab2.b2, tab3.a3,
          tab3.b3 order by tab1.a1);
          - und :

          http://download.oracle.com/docs/cd/B...htm#sthref1669


          Gruss

          Comment

          Working...
          X