I need to view the number of tables existing under one
particular Owner. Is it possible? If so, pl give the SQL
query for this?

Answers were Sorted based on User's Feedback



I need to view the number of tables existing under one particular Owner. Is it possible? If so, pl..

Answer / nitesh

SELECT TABNAME FROM SYSCAT.TABLES WHERE OWNER='<ownername>

eg. SELECT TABNAME FROM SYSCAT.TABLES WHERE OWNER='NITESH'

Is This Answer Correct ?    2 Yes 1 No

I need to view the number of tables existing under one particular Owner. Is it possible? If so, pl..

Answer / s

do a select on SYSIBM.SYSTABLES

Is This Answer Correct ?    1 Yes 1 No

I need to view the number of tables existing under one particular Owner. Is it possible? If so, pl..

Answer / shankar

Select TBNAME from SYSIBM.SYSTABLES where TBOWNER = ' '

- Try 'NAME' and 'OWNER' if TB prefix does not work.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More DB2 Interview Questions

What information is held in SYSIBM.SYSCOPY?

1 Answers  


How does DB2 use multiple table indexes?

1 Answers  


What is ibm db2 connect?

0 Answers  


What is the role of data manager in the db2 database?

0 Answers  


What information can you find in SYSIBM.SYSLINKS table?

1 Answers   TCS,






What is a Cartesian product?

2 Answers  


What is db2 plan table?

0 Answers  


What are the three types of page locks that can be held?

1 Answers  


How to define the data items to receive the fetch items for the SQL?

2 Answers  


Why do we use cursor?

0 Answers  


wt is view ? wht r the restrictions for view ?

3 Answers   Verizon,


What is QUIESCE?

2 Answers  


Categories