• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Oracle autonumber question

How do you generate a autonumber that needs to be put in more than one table to create a relationship?

For example I have 3 tables.

TBgenData
Proj_Num*
Proj_Name

TBdate
Date_ID*
Proj_Num
Date

TBfinancial
Fin_ID*
Date_ID
YTD_Budg

In this case, the Date_ID needs to be generated, and then put into the TBfinancial table and another table called TBschedule.

Thanks

EDIT* I believe sequences can be used but I don't understand how that all works out.

 
Right. In Oracle, the only way to make a field autonumber is to create a sequence and a trigger and on insert, the trigger will assign the field the next value in the sequence.

Fun, right?
 
Back
Top