Advertisement
Guest User

Tipo_Venda_Peca Update

a guest
Jul 26th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.39 KB | None | 0 0
  1.  update   [DW_ADMIN_BI].[map].[PosVenda_Tipo_Venda_Peca]
  2.    set CD_TP_VENDA_PECA_NV2=2
  3.    from [DW_ADMIN_BI].[map].[PosVenda_Tipo_Venda_Peca]
  4.    where CD_TP_CONTA='W' and CD_DEPARTAMENTO_NV1=2
  5.  
  6.    update   [DW_ADMIN_BI].[map].[PosVenda_Tipo_Venda_Peca]
  7.    set CD_TP_VENDA_PECA_NV2=3
  8.    from [DW_ADMIN_BI].[map].[PosVenda_Tipo_Venda_Peca]
  9.    where CD_TP_CONTA='X' and CD_DEPARTAMENTO_NV1=3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement