-5

So i have this table, and and in ORACLE would like to select all data + do a count.

I tried

SELECT *, count(*) as count
FROM ...

but i get the error message:

ERROR: ORA-00923: FROM keyword not found where expected ...

CONTROLNAME   BRANDNAME   GROUPTYPES    GROUPNAME 
ECU           AUDI        VERNETZER         1 
ECU           AUDI        FUSI              2 
ECU2          AUDI        FACHANWENDER  Keine zuordnung 
ECU3          AUDI        FACHANWENDER  Keine zuordnung

Thank you!

KGBR
  • 435
  • 1
  • 8
  • 17

1 Answers1

2
SELECT table_name.*, count(*) over () as count
FROM   table_name...;
hemalp108
  • 1,209
  • 1
  • 15
  • 23