Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Creating a Soft RI - forum topic by taruntrehan

$
0
0

Hi All,

 

I have to implement a soft ri in one of my project.

 

Following are the tables in PER_DATA:

 

person_mst with columns

p_num bigint

p_dt date

p_status char(1)

 

composite key is defined on columns p_num and p_dt

person_mst was created by user xyz.

 

person_car_dtl

p_num bigint

p_dt date

p_car_num varchar(100)

 

person_car_dtl was created by user abc.

I need to define a soft ri in person_car_dtl table and trying to execute the following query for it:

alter table PER_DATA.person_car_dtl 
add constraint FK_pers_car_chk foreign key (p_num,p_dt) 
references with no check option 
PER_DATA.person_mst(p_num,p_dt);

 

 

I am getting the following error :

 

ALTER TABLE Failed. 5315:  The user does not have REFERENCES access to PER_DATA.person_mst.p_num.

 

Please suggest the resolution for this.

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>