Posts by Luís Gabriel de Andrade • 106 points
4 posts
-
2
votes2
answers82
viewsA: How to instantiate Strategy objects
But in this way, by making use of condition structures, I would be creating a problem that the Strategy pattern seeks to solve. Correct? Yes and no. The use of Pattern Strategy is to provide an…
-
2
votes1
answer220
viewsA: How to assign two values in ng-click?
You can declare more than one inline mode command in the directive ng-click separating the commands with ;, just like writing in normal code: [...] ng-click="d.expandedBlog = !d.expandedBlog;…
-
1
votes2
answers184
viewsA: How to automatically name a manually created CONSTRAINT in Sqlserver 2016
As Ricardo Pontual commented, it is mandatory to inform the name of constraints created outside the command CREATE TABLE. However, it is possible to create more complex constraints when creating the…
-
1
votes1
answer43
viewsA: How to compare more than one column in an IN clause?
Unfortunately, there’s no way to use the IN to compare records by more than one column. However, you can create an anonymous table from a subquery and make a Join in the equivalent columns: SELECT *…
sql-serveranswered Luís Gabriel de Andrade 106