Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Foreign Key

Former Member
0 Likes
414

Hi,

Can someone help in creating a Foreign key on a field which is not a Primary key in the check table.

3 REPLIES 3
Read only

Former Member
0 Likes
387

hi,

a foreign is always a primary key in one of teh database tables, else it cannot be a foreign key.

Theja

Read only

Former Member
Read only

Former Member
0 Likes
387

Hi rachana,

1. The system will not allow

2. it would give message like this

Check table YHRT_CHKL_FUNMST has no key field with

domain YHRO_FUNTXT of the field FUNTXT

3. Even if we finally / indirectly manage to do,

the foreign key loses its purpose.

regards,

amit m.