| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> design problem with fk part of pk in oracle env
hi folks,
I've designed some tables and a relationship between them
/ *=================================================
/ *=================================================
create table RIC_REFERENZZINS (
ID_RIC_REFERENZZINS INTEGER not null,
UPDATE_NO NUMBER(5) not null,
ID_REFERENZZINS INTEGER not null,
RIC_FREQUENZ INTEGER not null,
FREQUENZ_EINHEIT VARCHAR2(3), ZEITRAUM_AB DATE, ZEITRAUM_BIS DATE,
/ *=================================================
/ *=================================================
create table ZINSSATZ (
ID_ZINSSATZ INTEGER not null,
UPDATE_NO NUMBER(5) not null,
ZINSSATZ NUMBER(9,6),
QUOTIERUNGSZEIT DATE,
UEBERNAHMEZEIT DATE,
ID_KURSART INTEGER not null,
ID_RIC_REFERENZZINS INTEGER not null,
USER_IK NUMBER(5),
REC_STATUS VARCHAR2(1),
VALID_FROM DATE,
VALID_TO DATE
)
/
/ *=================================================
/ *=================================================
alter table ZINSSATZ
add constraint FK_ZINSSATZ_RELATIONS_RIC_REFE foreign key
(ID_RIC_REFERENZZINS)
references RIC_REFERENZZINS (ID_RIC_REFERENZZINS)
/
how to work around it in an Oracle enviroment as of 8.1.7.4 on Sun Solaris 2.8
table zinsatz
id_zinssatz is incremented by a sequence
and for id_zinssatz there several updates
though in the referenced table I only want the id_zinssatz
referenced ...
p.s. as for sybase design it works properly but not for ORCL why???
any help highly appreciated
Thanks
-- Posted via http://dbforums.comReceived on Tue May 06 2003 - 10:35:57 CDT
![]() |
![]() |