Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with Order By in a Union
Message
 
À
03/05/2009 23:56:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01397707
Message ID:
01397708
Vues:
59
>Having problems figuring this out:
>
>This gives an error, complaining about the Order by clause. Must be caused by the nvl() function?
>
>
>Select vendor From CopyTemplateMtl
> Union All
>  Select Nvl(vendor,'') From c:\testdata
>   Order By vendor
>
>
>I also tried:
>
>
>Select vendor From CopyTemplateMtl
> Union All
>  Select Nvl(vendor,'') as vendor From c:\testdata
>   Order By vendor
>
>
>
>If I leave out the Order By clause, it works, but the results are not ordered like I want.

Try with
...
ORDER BY 1
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform