declare @CabDoc Table ( Codigo int, Data datetime, Entid...


Please login or register to vote for this query.

(click on this box to dismiss)

History of Science and Math

Q&A for people interested in the history and origins of science and mathematics

declare @CabDoc Table

Codigo int,
Data datetime,
Entidade int,
Valor int

declare @LinDoc Table

CodigoCabDoc int,
NumLinha int,
CodArtigo int,
Descricao nvarchar(max),
Quantidade int,
PrecoUnitario int


select * from Posts
Select * 
  From @CabDoc CabDoc
 Inner Join @LinDoc LinDoc
         On LinDoc.CodigoCabDoc = Codigo
        And LinDoc.CodArtigo = 'XPTO'
 --Where CabDoc.Data between

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results