More DBA job interview questions and answers at
http://dba.fyicenter.com/Interview-Questions/
(Continued from previous question...)
I need to view the number of tables existing under one particular OWNER. Is it possible ? If so, please give the SQL query for this ?
The query SELECT * FROM SYSIMB.SYSTABLES WHERE CREATOR = 'owner id ' This displays the table names with that if you want only the number of tables give the following query. SELECT COUNT(*) FROM SYSIBM.SYSTABLES WHERE CREATOR = 'owner id' Make sure that you are in correct subsystem.
(Continued on next question...)