Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. select CASE
  2. WHEN estimador.Clave = 'Perfiles' THEN (select gasto.[Importe Banco]*0.5 from SN_INT_PartidasGasto as gasto where gasto.[Clase de Coste]='FSW' and estimador.IdProyecto=gasto.[ID Proyecto] and AmbientePRE='PRE')
  3. WHEN estimador.Clave = 'Puntos V1' THEN 'Puntos V1'
  4. WHEN estimador.Clave = 'Puntos V2' THEN 'Puntos V2'
  5. ELSE 'Sorry, no match.'
  6. END AS CATEGORIA from tb_Estimador as estimador where estimador.IdProyecto in (select gse.FolioSantec from db_Incurrido.dbo.GSE_Real as gse where gse.FolioSantec=estimador.IdProyecto and estimador.Clave!='Tarifa Promedio')
  7.  
  8. Msg 512, Level 16, State 1, Line 1 Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= ,
  9. >, >= or when the subquery is used as an expression.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement