Ver Mensaje Individual
  #5 (permalink)  
Antiguo 25/05/2004, 14:49
Avatar de Cain
Cain
 
Fecha de Ingreso: enero-2002
Ubicación: Catalunya
Mensajes: 6.459
Antigüedad: 22 años, 4 meses
Puntos: 17
SELECT ( (PS+ CM)- ( EX+ CS)+ BL) as total, agente, resultado, Id_ag, Ag_Name,Id_val, PS, CM, EX, CS, BL, Id_retailer, ret_name
FROM DB.values, DB.agents, DB.retailers
WHERE agente = Id_ag AND Id_retailer= Ag_retailer
ORDER BY total
LIMIT 1
__________________
M a l d i t o F r i k i