RocAFella2007
Technical User
Hi, im not sure if this is in the correct section. I am using oracle and have been experiencing some problems when I try to run the following query.
I want to display all car Id's which are less than 5, in the table there is alot of details.
So basically when the query runs, all the carid values get counted, and if they are less than 5 I want them to appear, I have the following so far:
SELECT CARID, COUNT(CARID)
2 FROM TAXIJOURNEY
3 WHERE COUNT(CARID) < 5
4 GROUP BY CARID;
It keeps throwing an error, could anyone please give me a suggestion? Thanks
I want to display all car Id's which are less than 5, in the table there is alot of details.
So basically when the query runs, all the carid values get counted, and if they are less than 5 I want them to appear, I have the following so far:
SELECT CARID, COUNT(CARID)
2 FROM TAXIJOURNEY
3 WHERE COUNT(CARID) < 5
4 GROUP BY CARID;
It keeps throwing an error, could anyone please give me a suggestion? Thanks