![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
12/10/2012, 15:33
|
| | Fecha de Ingreso: octubre-2012
Mensajes: 7
Antigüedad: 12 años, 4 meses Puntos: 0 | |
Problema con comando GO Tengo un problema al ejecutar este query desde java Eclipse
Go
WITH T AS
(SELECT Row_Number() Over(Partition BY nombre ORDER BY id) Nm,
*
FROM TABLE1)
SELECT nombre,
IsNull(Max(Case When Nm=1 Then Cast(Valor AS Varchar) End),'-'),
IsNull(Max(Case When Nm=2 Then Cast(Valor AS Varchar) End),'-'),
IsNull(Max(Case When Nm=3 Then Cast(Valor AS Varchar) End),'-')
FROM T
GROUP BY nombre;
me da error de Sintaxis, no reconoce el comando "Go"
como podria hacerlo correr???
Gracias |