Hi Derek,
Thanks for your attention. It didn't work, though.
Regards,
--
Luiz Horacio
lhoracio@iname.com
"Derek Shi" <drkshih@hotmail.com> escreveu na mensagem
news:011f01c3c07f$11f40450$a001280a@phx.gbl...
[quoted text, click to view] > Isn't like this way:
>
> update table2
> set pat_id = t1.pat_id
> from table1 t1
> where table2.login_pat = t1.login_id
>
> It should work.
>
> Derek
>
>
> >-----Original Message-----
> >Hi,
> >
> >I'm having a problem to update values in one table.
> >
> >I have one table:
> >table1.login_id
> >table1.pat_id.
> >
> >I have another table:
> >table2.login_pat
> >table2.pat_id.
> >
> >Table2.pat_id has values that I need to update in
> table1.pat_id, where
> >table1.Login_id = table2.login_pat
> >
> >Tried a lot, but can't find how to do this query... Can
> someone help me?
> >
> >
> >Regards,
> >
> >
> >
> >--
> >Luiz Horacio
> >lhoracio@iname.com
> >
> >
> >
> >.
> >