Forum Replies Created

Viewing post 1 (of 2 total)

  • RE: Relationship between tables

    OMG, sorry... forgot to post the query, here you go:

    use corporerm

    select datepart(year,M.DATAEMISSAO) AS ANO, DATEPART(MONTH,M.DATAEMISSAO) AS MÊS, M.NUMEROMOV AS NOTA,

    (SELECT M.VALORLIQUIDO) AS 'VALOR TOTAL' FROM TITMMOV IM

    INNER JOIN DNATUREZA D...

Viewing post 1 (of 2 total)