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 available join types in teradata?
What is spool space and when running a job if it reaches the maximum spool space how you solve the problem?
How is the teradata different from oracle?
Describe primary index in teradata?
Different phases of multiload?
What is real time and near real time data warehousing?
Why does varchar occupy 2 extra bytes?
What is bteq utility in teradata?
Explain and compare pros and cons of snow flake schemas?
What happens when a node suffers a downfall?
Define views in teradata with general syntax.
Mention the procedure via which, we can run Teradata jobs in a UNIX environment.
What is dimensional modeling?
What is the difference between global temporary tables and volatile temporary tables?
How do you see a ddl for an existing table?