select motivo from cabecalhonf where nota = 22; select nota,totaldanota,totalprodutos from infocomplementar where nota = 22; select primaria,contabil,valor_produtos,desconto from lvsaidas where nota = 22; select sum(valorproduto) from produtos_nota where nota = 22; select primaria,desconto_item from produtos_nota where nota = 22;