SELECT STATUS, AVG(COUNT(CRIME_ID)) "Avg # of Crimes per Status" FROM CRIMES GROUP BY STATUS; When I try to run th ...
SELECT STATUS, AVG(COUNT(CRIME_ID)) "Avg # of Crimes per Status" FROM CRIMES GROUP BY STATUS; When I try to run th ...
I am writing a trigger that will insert a newly inserted row into another table by pulling up the data from the table using LISTAGG function. Here is ...
When I try to execute following block, it returns ORA-00937. Can someone help what is happening here? This is just simplified example I tried and I ...
I am trying to display the total sum of the Total output cost of the invoice: These are the tables with italics columns representing primary keys: Cus ...
I've been searching for a few hours now, on how to resolve an ORA-00937: not a single-group group function and none of them seem to explain why I am g ...
Error message: ORA-00937: not a single-group group function. Currently running this on oracle live SQL. Any ideas on how I can solve this? ...
What I'm trying to achieve is to show the retail prices which are less than the MAX cost of all the books Example ...
I am trying to find the department with the most employees in the demo HR schema: The script works without MAX(). ...
I want to write a query which retrieves rows in each tables present under a particular owner. I am not very good at writing queries and so I could not ...
I have a query on Oracle: When executing, it showed error: How to solve this prob. Thanks ...
Oracle 11g R2 via SqlDeveloper: How do I group a row using LISTAGG function if that row has already been grouped? This error is returned: ORA-00937: ...
I'm facing a problem in Oracle. I had a SQL where some values were fixed. Now I started replacing them with values from a parameter-table. Some of the ...
It keeps coming back with an error, any suggestions ? thanks for your cooperation ...
SQL query: I tried to calculate the daily invoice amount by dividing the total amount to the number of the days of given month in table t_beta_invo ...
I am attempting to write a query that returns the the number of employees, the average salary, and the number of employees paid below the average. Th ...
I have an employee table where the fields are: first_name, last_name, hire_date, salary, department_id, department_name, and so on. I am asked to fi ...
I have the testmax table as following : Now, the problem is how can I find the I which has max J, by following I can find only what is the max J ...
Oracle Weird error : Unexpected error ORA-00937: not a single-group group function Executing from VB6 Application, using Adodb using Provider=MSDAORA ...
I asked something similar a few days ago, here is my issue. My professor has phrased the following question: Find the average ratings of all movies pl ...
this is my sql statement i get this error. but when i use only Max to single and without displaying other results it works. can someone help me ERR ...