Filtrado de Registros
Prueba esto:
select top 5 * from tabla where pozo=1 UNION select top 5 * from tabla where pozo=2 UNION .... UNION select top 5 * from tabla where pozo=N
Estoy suponiendo que los distintos pozos los identificas por números. Adáptalo como mejor se ajuste a la estructura de tu tabla.
Un saludo dsd Cádiz
select top 5 * from tabla where pozo=1 UNION select top 5 * from tabla where pozo=2 UNION .... UNION select top 5 * from tabla where pozo=N
Estoy suponiendo que los distintos pozos los identificas por números. Adáptalo como mejor se ajuste a la estructura de tu tabla.
Un saludo dsd Cádiz
1 Respuesta
Respuesta de averias33
1