I ended-up going with your approach today

Posted by Otter at 11:37am Apr 22 '10
You must sign in to send Otter a message
so far it looks like this (without using any variables):

insert into dbo.[t-IC-HD-all]
select * from dbo.[v-hd2008]
go

insert into dbo.[t-IC-HD-all]
select * from dbo.[v-hd2007] where [Unique identification number for an institution] NOT IN
(Select [Unique identification number for an institution] from dbo.[t-IC-HD-all])
go

insert into dbo.[t-IC-HD-all]
select * from dbo.[v-hd2006] where [Unique identification number for an institution] NOT IN
(Select [Unique identification number for an institution] from dbo.[t-IC-HD-all])
go

----

it works, and that's all I care about. It's easy enough once a year to go in and

truncate table

then revise this code to add one more year and run it again. It's a non-transactional table so it'll never change other than that.

Thank you!
There are 11 private posts in this thread. You need to sign in to read them.

Below are the public posts you may view:

You currently have read-only access to this board. You must request an account to join the conversation.

Why Join 4thKingdom?

Note that there are no ads here. Just intelligent and friendly conversation. We keep the spam out, the trolls out, the advertisers out… 4K is just a low-key, old-fashioned site with members from around the world.
This community began in 1998, and we continue to accept new members today.

Hot Discussion Topics: