Please tell me a query to find the Primary key,Foreign
key,primary Index,PPI for the Database?
Answer Posted / innocent
Hi Parsad,
I hope by running below query you'll get many part of your
answer.
_----------------------------------------------------------_
Select DatabaseName, TableName ,columnName,
Case When IndexType='K' Then 'Primary Key'
When IndexType='S' Then 'Secondary Index'
When IndexType='P' Then 'Primary Index'
When IndexType='Q' Then 'PPIndex'
When IndexType='J' Then 'Join Index'
End as implimented_Index
From DBC.Indices
Where TableName in
( Select distinct TableName
From DBC.Tablesize
Where DatabaseName <>'DBC'
And
CurrentPerm>0
)
Order by 1,2,3
_
Innocent
Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Why is the case expression used in teradata?
How to find duplicates in a table?
Explain the types of join supports by teradata?
Explain vproc in teradata?
What are normalization, first normal form, second normal form and third normal form?
Define views in teradata with general syntax.
Explain parsing engine in teradata?
What is bteq utility in teradata?
Name the five phases that come under MultiLoad Utility.
How will you solve the problem that occurs during update?
What is teradata? Also, list out some of the primary characteristics of teradata.
Explain the term 'columns' related to relational database management system?
Difference between multiload and tpump?
What is the difference between fastload and multiload?
What is meant by a Clique?