Reputation: 49
I have the following database table:
CREATE TABLE pontaje
(
coda NUMBER(4) REFERENCES angajati( coda ),
data DATE,
ore NUMBER(3)
);
When I run the code :
SELECT coda, SUM(ore) AS totalore
FROM pontaje,
GROUP BY coda
I get ORA-00903: invalid table name
.
But I know the table exists because: SELECT * FROM pontaje
works.
Upvotes: 3
Views: 20704
Reputation: 263943
SELECT coda, SUM(ore) AS totalore
FROM pontaje -- << remove comma
GROUP BY coda
Upvotes: 4