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 happens when a node suffers a downfall?
What are the different table types supported by teradata?
Highlight the advantages of PPI(Partition Primary Index).
What is spool space? Why do you get spool space errors?
What are the components used in smp and massively parallel processing (mpp) machines?
In a table can we use primary key in one column and in another column both unique and not null constrains.if yes how?
Explain teradata utilities?
how many modules are there in telecome domain?how to explain the architecture?
How would you load a very large file in teradata in general? What utility would you use for it? Why?
How to write the query . eid enm doj dob i want to display the names who worked more than 25 years .
How do you verify a complicated sql?
What is collect statistics?
Can you connect multiload from ab initio?
What is the particular designated level at which a LOCK is liable to be applied in Teradata?
What are the different design perspectives used in teradata?