Posts by Ronan Matos • 21 points
2 posts
-
0
votes3
answers511
viewsA: What is the most recommended "Try" or "if"
When you already expect a mistake, I always use the If, because it generates a cleaner code. Otherwise, opt for the Try catch
-
0
votes3
answers160
viewsA: Select Where IN all records
Hello, you must have a table with the trainings then it would be: To take the total amount of materials declare @qtdTreinamento bigint SELECT qtdTreinamento = (SELECT DISTINCT CodTreina FROM…