Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Update Algorithm!
here's the specs!!
There are three tables with the foll. relationship.
Table A with USER_SSN as primary key
Table B with CITY_ID as primary key and USER_SSN as foregin key
Table C with HOBBY_ID as UNIQUE field and USER_SSN as foreign key.
There may be zero or one or many records in TABLE C for any USER_SSN in
Table A.
There will be only one record in Table B for any USER_SSN in Table A.
And Now, a USER_SSN needs to be changed to a new value. It's assumed that the NEW USER_SSN is never present in the table before.
I have decided the following algorithm solves the problem in a
PROCEDURE.
Pls. suggest if anything could be corrected to get better performance.
Thanks in advance for your suggestions!
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Received on Thu Sep 02 1999 - 09:57:28 CDT
![]() |
![]() |