Ver Mensaje Individual
  #16 (permalink)  
Antiguo 14/10/2015, 11:59
Avatar de gnzsoloyo
gnzsoloyo
Moderador criollo
 
Fecha de Ingreso: noviembre-2007
Ubicación: Actualmente en Buenos Aires (el enemigo ancestral)
Mensajes: 23.324
Antigüedad: 16 años, 5 meses
Puntos: 2658
Respuesta: Consulta Unicode con SQL Server

Sería... Aunque le falta el alias para la tabla derivada.
Código SQL:
Ver original
  1. SELECT *
  2. FROM (SELECT CAST (Title AS NVARCHAR(200)) COLLATE SQL_Latin1_General_CP1_CI_AS Title, SubTitle,
  3.       Initiators, WinningTypeID, WinningType, RewardTypeID, RewardType, WinningYear, ShortDescription,
  4.       Initiators, Description, Image1, Image2, Image3, Image4, InitiatorEmail, InitiativeID, InMemoryOF
  5.     FROM ViewWebWinningInitiatives
  6.     WHERE RewardTypeID = 1
  7.       AND WinningYear = '$_year'
  8.       AND WinningTypeID = '$_type') Tabla
  9. WHERE Title LIKE '%$_input%'
  10. ORDER BY Title
¿Lo probaste?
__________________
¿A quién le enseñan sus aciertos?, si yo aprendo de mis errores constantemente...
"El problema es la interfase silla-teclado." (Gillermo Luque)