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
Explain BYNET.
How does hashing happens in teradata?
How many types of joins are there in teradata?
how do you manage the production space. what are the proactive methods you can take ?
What are aggregate tables? How do you design them using teradata?
What tools would you use for that?
What are the different table types that are supported by teradata?
What are the frequently used data types in teradata?
What are the steps involved in the process flow of the sql statement through channel attached system?
How can you track login parameters of users in teradata?
What are the uses of bynets in multi-node systems?
Can we have an unconnected lkp to lookup a db2 record against a teradata record? Doesnt seem to work. I could be wrong
What is TPD?
How do you set the session mode parameters in bteq?
Where is teradata rdbms used?