Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/09/2010, 11:32
Avatar de flaviovich
flaviovich
 
Fecha de Ingreso: agosto-2005
Ubicación: Lima, Peru
Mensajes: 2.951
Antigüedad: 19 años, 6 meses
Puntos: 39
Respuesta: separar consulta en dos columnas

Prueba asi:
Código SQL:
Ver original
  1. DECLARE @total INT
  2. SELECT @total = COUNT(1) FROM Productos
  3.  
  4. SELECT *
  5. FROM (
  6.     SELECT * FROM Productos WHERE Id <= @total / 2
  7. ) t1
  8. LEFT JOIN (
  9.     SELECT * FROM Productos WHERE Id > @total / 2
  10. ) t2 ON t1.Id + @total / 2 = t2.Id
__________________
No repitamos temas, usemos el Motor de busquedas
Plantea bien tu problema: Ayúdanos a ayudarte.