Ver Mensaje Individual
  #3 (permalink)  
Antiguo 05/08/2009, 10:00
chimaria
 
Fecha de Ingreso: marzo-2009
Mensajes: 121
Antigüedad: 15 años, 1 mes
Puntos: 1
Respuesta: Problemas con un select con condicion

Hola le quite le likepero igualito aqui te coloco la estructura de l tabla

CREATE TABLE conceptos
(
id_sede int2 NOT NULL,
id_concepto int4 NOT NULL,
concepto char(60) NOT NULL,
clase int2 NOT NULL,
tipo int2 NOT NULL,
status_convenio int2 DEFAULT 0,
afecta_prestaciones int2 DEFAULT 0,
afecta_utilidades int2 DEFAULT 0,
afecta_vacaciones int2 DEFAULT 0,
unidad char(15) NOT NULL,
formula varchar(500),
afecta_liquidacion int2 DEFAULT 0,
afecta_sueldomensual int2 DEFAULT 0,
ingreso_mensual int2 DEFAULT 0,
vigente int2 DEFAULT 0,
asociado int2 DEFAULT 0,
descripcion varchar(100) DEFAULT 0,
CONSTRAINT concepto_sede FOREIGN KEY (id_sede)
REFERENCES sede (id_sede) MATCH SIMPLE
ON UPDATE RESTRICT ON DELETE RESTRICT
)
WITHOUT OIDS;
ALTER TABLE conceptos OWNER TO postgres;


nose que hacer help