• Could you post DDL for both tables? Some comments on what the columns are could be useful.

    Additionaly, you could use the system views to find any Primary keys or Foreign keys on both tables.

    SELECT *

    FROM sys.objects

    WHERE type IN ('F', 'PK')

    AND parent_object_id IN( OBJECT_ID( 'Saldos_Emp', 'U'), OBJECT_ID( 'AnotherTable', 'U'))

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2