How to combine the results of two queries?
问题 I created a procedure that has two selects, I want to join the result of these two selects in one. This is my procedure CREATE PROCEDURE spConsultarVendas @nomeUsuario nvarchar(60), @dataEmissao datetime, @dataSaida datetime AS BEGIN SELECT NF.ID, NF.NaturezaOperacao, NF.DataEmissao, NF.ValorTotal FROM NotaFiscal AS NF INNER JOIN Venda AS V ON NF.ID_Venda = V.ID INNER JOIN Usuario AS U ON V.ID_UsuarioComissao1 = U.ID WHERE U.Descricao = @nomeUsuario AND (NF.DataEmissao >= @dataEmissao AND NF