Skip to content
Advertisement

Multiple selects in laravel 6.0

0, I have this code that works perfectly

JavaScript

I want to make another select but with another condition, I tried with this but doesn’t work

JavaScript

Can somebody help me?

Advertisement

Answer

Group By cat_cliente, this will count gold, count silver…, in each records.

JavaScript

output =>

JavaScript

You want to put them in one record, I think you can get it out and display it by loop. However, if you really want to get it in query, try this:

JavaScript

Output =>

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement