Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oracle 10g Compound UPDATE statement

Status
Not open for further replies.

dskgreen

Programmer
Apr 12, 2007
1
US
I am trying to write an UPDATE statement that will update one field in a table with data from various other tables. For example, I have a table with phone numbers and I need to get the address field populated. This address field is in about 25 data tables (in the same schema). Each month I get a list of phone numbers and I need to get an address for each phone number. The phone numbers are not necessarily the same each month and querying against the most current data table does not get me an address for each phone number. Is this possible??

In addition, for the data tables - each month one data history table purges off the database while a new data history table is added (for example CUST_ACCT_HIST_200509 will purge off and CUST_ACCT_HIST_200710 will be added). I would need to manually modify any scripts unless this can be handled somehow.

Any assistance would be greatly appreciated. Thanks. Deb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top