Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What happens when a node suffers a downfall?

1077


What are the different table types supported by teradata?

914


Highlight the advantages of PPI(Partition Primary Index).

1039


What is spool space? Why do you get spool space errors?

971


What are the components used in smp and massively parallel processing (mpp) machines?

1018


In a table can we use primary key in one column and in another column both unique and not null constrains.if yes how?

1123


Explain teradata utilities?

1003


how many modules are there in telecome domain?how to explain the architecture?

1980


How would you load a very large file in teradata in general? What utility would you use for it? Why?

1057


How to write the query . eid enm doj dob i want to display the names who worked more than 25 years .

1740


How do you verify a complicated sql?

1031


What is collect statistics?

957


Can you connect multiload from ab initio?

1161


What is the particular designated level at which a LOCK is liable to be applied in Teradata?

1009


What are the different design perspectives used in teradata?

947