update columns from another Database

  • Hi Team,

    Am having two databases in one instance, Names are

    SCC

    SCCL

    both are in sync, regularly we are using SCC for regular use,

    i've one table called SEMP in SCC database with columns id, lname, fname, password

    unfortunately data removed from column password,

    now i want to get the data from SCCL database > SEMP table and update in SEMP table in SCC database.

    Any query please.

  • UPDATE a

    SET a.password = b.password

    FROM SCC..SEMP as a

    INNER JOIN SCCL..SEMP as b

    on a.ID = b.ID

    AND a.fname = b.fname

    AND a.lname = b.lname

    ---------------------------------------------------------

    It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
    David Edwards - Media lens[/url]

    Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
    Howard Zinn

  • Thank U Abu.

  • You welcome. 🙂

    ---------------------------------------------------------

    It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
    David Edwards - Media lens[/url]

    Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
    Howard Zinn

Viewing 4 posts - 1 through 3 (of 3 total)

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