Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UNION does not get the record on specific environment
Message
De
12/11/2002 16:14:29
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
UNION does not get the record on specific environment
Divers
Thread ID:
00721818
Message ID:
00721818
Vues:
76
I just found something weird that I am looking to get some additional information on. It is in regards to a UNION clause where, being executed from the command prompt works, but, when being executed from the code, if the cursor of the UNION table is at EOF(), does not grab the related record.

For example:
SELECT Member.FName,Member.LName,Member.Numero FROM Reservation;
 INNER JOIN Member ON Reservation.NoMember=Member.Numero;
 UNION;
SELECT Member.FName,Member.LName,Member.Numero FROM Other;
 INNER JOIN Member ON Other.NoMember=Member.Numero;
 ORDER BY LName INTO CURSOR Temp
if executed from the code, doesn't grab the specific record from the Other table. However, doing this will make it work:
SELECT Other
GO TOP
SELECT Member.FName,Member.LName,Member.Numero FROM Reservation;
 INNER JOIN Member ON Reservation.NoMember=Member.Numero;
 UNION;
SELECT Member.FName,Member.LName,Member.Numero FROM Other;
 INNER JOIN Member ON Other.NoMember=Member.Numero;
 ORDER BY LName INTO CURSOR Temp
What is causing such reaction?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform