A phisical file has two fields like 1) Account No(10,0)
2)Phone No(15,0)Unique on both fields?Please give me the
answer for this?

Answers were Sorted based on User's Feedback



A phisical file has two fields like 1) Account No(10,0) 2)Phone No(15,0)Unique on both fields?Pleas..

Answer / swadesh.yadav

Your question is not very clear but whereas i understand
if we make both fields unique, both of fields accept the
values unique i.e it will not accept duplicate value
together.For Example
Acct.no Phone no.
1111 2222(we can put this values)
1111 2222(Duplicacy not allowed)
1111 3333(we can put that)
2222 3333(we can put that)

Is This Answer Correct ?    10 Yes 0 No

A phisical file has two fields like 1) Account No(10,0) 2)Phone No(15,0)Unique on both fields?Pleas..

Answer / gaurav

You can use File level keyword 'UNIQUE' which will accept
only unique record entry according to the key fields
defined.

Is This Answer Correct ?    3 Yes 0 No

A phisical file has two fields like 1) Account No(10,0) 2)Phone No(15,0)Unique on both fields?Pleas..

Answer / amit

If you use UNIQUE on both fields then one account will
allow only one phone number. Another phone number can't be
used there similarly you can't have one phone number
associated with multiple account.

however if you give unique constraint for the key
combination then it would ensure that you have account
number and phone number combination is unique.

So you can have same account number with multiple phone
numbers and vice versa.

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More IBM AS400 AllOther Interview Questions

if we tried to move year part of *iso date into a field of length 3, what will happen ?

0 Answers   IBM,


what is subfile?

1 Answers   IBM,


what does the opcode free do?

1 Answers   IBM,


What is SDA used for?

7 Answers  


What is diff between EVAL & MOVE?

0 Answers  






how do you read changed records backward in subfile?

0 Answers   IBM,


can a single screen format occupy a screen area above and below a subfile format ?

1 Answers   IBM,


is it there an easy way to determine if an html section is available to issue a wrtsection upon?

0 Answers   IBM,


how can I automatically refresh a web page?

0 Answers   IBM,


Difference Between Skip Before & Space Before?

0 Answers   IBM,


How many types of jobs?what is difference between interactive and batch and submited jobs?

3 Answers   IBM,


can we retrieve dspf source?

2 Answers  


Categories