Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question about a query result
Message
From
12/05/2004 10:35:12
 
 
To
12/05/2004 09:59:36
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00902445
Message ID:
00903172
Views:
19
select 	llamadas.numero				as numero	,;
	llamadas.fllamada 			as fllamada	,;
	llamadas.fatencion			as fatencion	,;
	llamadas.fcierre			as fcierre	,;
	llamadas.host	 			as host		,;
	llamadas.modelo 			as modelo	,;
	llamadas.undhard 			as hardware	,;
	dispositivo.descripcion 		as disnombre	,;
	llamadas.usuario			as usuario	,;
	usuarios_cia.nombre			as usunombre	,;
	oficina.nombre				as ofinombre	,;
	llamadas.piso				as piso		,;
	llamadas.ingeniero			as ingeniero    ,;
	ingeniero.nombre			as ingnombre	,;
	llamadas.grupo				as grupo	,;
	llamadas.servicio			as servicio    ,;
	sub_unidades.descripcion 		as mantenim	,;
	"1"					as temporal		;		
from   helpdesk!llamadas ;
    LEFT JOIN helpdesk!usuarios_cia  ON  Llamadas.usuario = Usuarios_cia.codigo; && <<== LOOKUP TABLES
    LEFT JOIN helpdesk!oficina       ON  Llamadas.oficina = Oficina.codigo ;
    LEFT JOIN helpdesk!dispositivo   ON  Llamadas.dispositivo = Dispositivo.codigo ;
    LEFT JOIN helpdesk!ingeniero     ON  Llamadas.ingeniero = Ingeniero.codigo ;
    LEFT JOIN helpdesk!sub_unidades  ON  Llamadas.servicio = Sub_unidades.codigo;
where 	Sys(11,Llamadas.fasignacion) ;
BETWEEN sys(11,m.ini) and Sys(11,m.fin); <== CONVERT THIS OUT OF QUERY !
    and empty(llamadas.fcierre) ;
ORDER by numero  
* group by numero   <<==== IF YOU NEDD TO ADD THIS, THIS QUERY IS INCORRECT
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform