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
What are the frequently used data types in teradata?
What is the multi-insert?
Explain the term 'foreign key' related to relational database management system?
What is the purpose of indexes?
What is the use of stored procedures in teradata?
What are the components provided on node?
Explain how spool space is used.
What is the difference between fastload and multiload?
Highlight all the modes that are present under Confidence Level.
In Teradata, what is the significance of UPSERT command?
Highlight the need for Performance Tuning.
What do you mean by ttu in teradata?
What is stored procedure in teradata?
What do you mean by fastexport in teradata?
What are the enhanced features in teradata v2r5 and v2r6?