Posts by Nuno Tomé • 9 points
5 posts
-
0
votes2
answers263
viewsA: join sql tables without Primary Keys or Foreign Keys common to 2 tables
The definition of Primary key and Foreign key are not necessary. They are a definition that limits certain actions of the system. Though I’m not advised, technically, you can have a database with no…
-
0
votes2
answers70
viewsA: Why does the return of the linear search for the element not found have to be -1?
Here you can also opt for other solutions such as throwing an exception when the search fails, or passing a flag by a flag that makes an effect similar to the return of -1. However this last…
-
-1
votes1
answer39
viewsA: Limit a specific value to a string
Good. Here you have to define if you want the value is less than 512 if (Strtoint(command))>511) or if you want the string length is less than 512. if (strlen(command) > 511) Anyway, to…
-
1
votes3
answers68
viewsA: How is Join and WHERE made with multiple tables?
Just as I add the information of Thiago Loureiro, when selecting LEFT JOIN these choosing all the entries you have left and only those (right) that are found. The remaining (From the left) appear in…
-
0
votes2
answers2646
viewsA: How to take an ENUM constant for the entire value?
I think the intended is something of a style: Mes mesEnum = "Janeiro".ToEnum<Mes>(); This situation can be verified in other discussions. I found an example in English, but you can check what…