Forum Replies Created

Viewing 3 posts - 46 through 48 (of 48 total)

  • RE: Help with joins for maintaining history table

    Here's what I did

    Month1:

    Insert into Bulkcopy(CompanyName ,CompanyNumber ,

    AddressLine,PostTown,Country,PostCode,CompanyStatus)

    ('A Company','006','2 Main st','White Plains','NY','USA',null,'1')

    Staging Month1:

    Select CompanyName +','+CompanyNumber +','+

    AddressLine+','+PostTown+','+Country+','+PostCode+','+CompanyStatus+','+CheckSumval

    from Staging;

    will yield

    A Company,006,2 Main st,White Plains,NY,USA,null,1,123456

    Master Month1:

    --delta

    insert into Master(CompanyName ,CompanyNumber ,

    AddressLine,PostTown,Country,PostCode,CompanyStatus,CheckSumval,lastupdated)

    select top 10 stg.CompanyName,...

  • RE: Help with joins for maintaining history table

    Oops! sorry, I did make the changes to table name & alias

  • RE: Database design question

    Good article! Thanks

Viewing 3 posts - 46 through 48 (of 48 total)