Archiving problem

  • Hi,

    I want to create an archiving databse.

    I have created the database + tables = easy enough

    I have copied a table called GL_POSINGS from db1 to the archive databse with YEAR=2002. Next I need to copy GL_TRANSACTIONS from db1 into the archive database where the JOURNAL_NO field exists in the archived databse - HELP, this is just too hard

  • select * from db1.dbo.GL_TRANSACTIONS

    where JOURNAL_NO IN (select JOURNAL_NO from archivedb.dbo.GL_POSINGS)

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply