G
G
Grigory Skvortsov2020-10-09 10:37:56
Oracle
Grigory Skvortsov, 2020-10-09 10:37:56

Oracle SQL "missing keyword" error, but it's not missing at all, where is the query error?

Here is the table:
5f8012b3ac94c724335046.jpeg

Here is the query:

select t.id, t.dt, t.curr, t.rate from t inner join
(select t.id, COUNT(t.id) as id_count from t
GROUP BY t.id) as t_count on t.id = t_count.id
where t_count.id_count > 1;


Oracle complains:
ORA-00905: отсутствует ключевое слово
00905. 00000 -  "missing keyword"
*Cause:    
*Action:
Error at Line: 3 Column: 16

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2020-10-09
@GregoryValeryS

As far as I remember, aliases for tables go without AS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question