what is the difference between adding keys & constraints
into a phisical file

Answers were Sorted based on User's Feedback



what is the difference between adding keys & constraints into a phisical file..

Answer / cyjil

CONSTRAINTS ARE ADDED EXTERNALLY .... BUT KEYS ARE ADDED
INTERNALLY..

Is This Answer Correct ?    6 Yes 1 No

what is the difference between adding keys & constraints into a phisical file..

Answer / kkk

Contraints check the existing data
But keyfields doesnot check the existing data.

Is This Answer Correct ?    4 Yes 0 No

what is the difference between adding keys & constraints into a phisical file..

Answer / praseetha sandeep

when we add keys in a pf it has effect only in that
particular field of pf but when we add constrains to a pf it
has an effect to entire pf

Is This Answer Correct ?    5 Yes 2 No

what is the difference between adding keys & constraints into a phisical file..

Answer / megha

1. Keyfileds are with in DB and constraits are added from
addpfcst command externally

2. Using Addpfcst you can maintain the referential integrity

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More DB400 Interview Questions

How can i retrieve city while my i have one field address length 60 but i don't know what where is city in this field ?

4 Answers  


How we can't update join logical files?

10 Answers  


I have a pf, it contains 5 members, how to access particular member data from logical file?

0 Answers  


how to update physical file using logucal file with example

1 Answers   Wipro,


Suppose if a physical file is having 1000 records, but i deleted 500 records from it. Here the concern is can the size of the file changes or it remains the same... kindly help me out with thorough xplanation.... Thanks in-advance...

6 Answers   ABC, TCS,






How to add a field to a PF and compile it without loss of data?

7 Answers  


How to insert more than one record to a pf at a time?(Bulk insert to a pf)

9 Answers  


What is FORMAT keyword and its use?

0 Answers  


How to change the batch job to interactive job?

0 Answers  


There are six records in a file and we are going to update that records and used commit operation when it complete the update but suppose when it updating the third record,a error occured and operation failed.Is previously two records will be update or whole operation will be rollback? Please confirm it.

2 Answers  


what is multiple member pf

1 Answers   Active Brains,


What is the interactive job? What is the batch job? How to change the batch job to interactive job?

0 Answers  


Categories