Posts by Samuel Fales • 14 points
2 posts
-
-1
votes1
answer298
viewsA: Query Union, group by and Count in the same query filtering by date range
Create the initial structure as a table.. select * from ( select "Cliente"."Nome" as Conveniado, "Municipios"."Nome" as Cidade, "Estado"."Nome" as Estado, 'ATIVO' as status from ((((dbo.Pedidos prt…
sql-serveranswered Samuel Fales 14 -
0
votes1
answer70
viewsA: Receive parameter and depending on the value run a specific process
Create a single file and run this selection within the same Sql server. declare @typoagenda int set @gendoagenda = 1 if @typoagenda = 1 Begin print 'exec Verified Available' end Else if @typoagenda…