Oracle - lista de valores con to_char

 
Vista:

lista de valores con to_char

Publicado por flaytos (1 intervención) el 07/06/2010 18:20:23
Es possible crear una lista de valores con to_char para coger valores de fechas??
tengo el siguiente ejemplo y me da error al crearla

select p.nom , g.idprofe
from professor p,guardia g
where p.idprofe = g.idprofe and upper(g.dia) = upper(to_char(sysdate,'DAY')) and hora = to_char(sysdate,'hh24');

el error que da es
LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder