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 figure out the solution on internet. The query I am writing is:
SELECT TABLE_NAME, COUNT(*) FROM DBA_TABLES WHERE TABLE_NAME IN
(SELECT TABLE_NAME FROM DBA_TABLES WHERE OWNER='ABC');
I know the query is completely wrong but I have just given it to let know what exactly I want. I hope it helps. The error which I am getting is:
ORA-00937: not a single-group group function
Please help me in writing the exact query for the same. Thanks!