2012-11-19, 07:59 PM
I have the following structure:
I need to create a view with the top 5 'nombre_institucion' from the first table with most 'delitos' (entries in antecedente_delito).
Basically the result I need in the view is:
brief description
code
I need to create a view with the top 5 'nombre_institucion' from the first table with most 'delitos' (entries in antecedente_delito).
Basically the result I need in the view is:
| Nombre_institucion | numero_delitos |
| inst1 | 32 |
| inst2 | 30 |
| inst3 | 25 |
| inst4 | 18 |
| inst5 | 10 |

