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
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 |
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 |
What is commit in db2?
If I have a view which is a join of two or more tables, can this view be updateable?
I understand Join always perform better than subqueries. Then what is the advantage/use of Subqueries/correlated subqueries etc.,in DB2 programming.Please explain.
What is the physical storage length of time data type?
List some fields from sqlca?
How do you simulate the explain of an embedded sql statement in spufi/qmf?
Suppose we have a query for update update table1 set col1 = 'val1' where col2=(select .... from ...) suppose the subquery does not return any record, what will happen to update?
how we will do null data selection in cobol-db2 program
how can you save the query in QMF?IS IT POSSIBLE OR NOT.IF POSSIBLW HOW?
what are the copybook changes generally we done?can anyone tell me......... Thanks in advance........
What is role in db2?
How can you split a table in to exactly half?