Posts by Luan Michel • 28 points
3 posts
-
0
votes1
answer98
viewsA: Parameter problems in API (Laravel) routes
Guy the Laravel has a way of using regex to restrict routes, one way to do this is by adding a Where: Route::get('user/{id}',SomeController@someFunction)->where('id', '[0-9]+'); This is advisable…
-
1
votes3
answers44
viewsA: Return larger field to ID
From what I understand of your question you want to group the maximum values of NUTAB into CODPROD groups. For this SQL has GROUP BY, it groups the fields and if used together with MAX it can return…
-
0
votes1
answer534
viewsA: I wanted to make a magic square, where I put 9 numbers, and the sum of them has to result 15 (horizontal and vertical)
Face your doubt is not very clear if you want a solution to this magic square (which is unlikely), or an algorithm that would solve such a case. If you want a solution is simple to find on the…