Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help to build a query with inners, left, right or full j
Message
From
16/06/2004 09:57:43
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
15/06/2004 14:49:54
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00913984
Message ID:
00914235
Views:
8
>
> FROM  helpdesk!llamadas ;
>    LEFT JOIN helpdesk!sub_unidades ON  Llamadas.servicio = Sub_unidades.codigo;
>    LEFT JOIN helpdesk!ingeniero    ON  Llamadas.ingeniero = Ingeniero.codigo ;
>    LEFT JOIN helpdesk!dispositivo  ON  Llamadas.dispositivo = Dispositivo.codigo ;
>    LEFT JOIN helpdesk!oficina      ON  Llamadas.oficina = Oficina.codigo ;
>    LEFT JOIN helpdesk!usuarios_cia ON  Llamadas.usuario = Usuarios_cia.codigo ;
> GROUP BY Llamadas.numero
>* ORDER BY Llamadas.numero && this is not necessary
>
ORDER BY not necessary? Perhaps you are right, but I am not sure. I may be wrong, but I think I read somewhere that there is no guarantee that the records will appear in any specific order. IOW, it might work in some cases, and not in others.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform