Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Chaining Left Outer Joins?
Message
 
 
À
11/04/2005 15:39:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Divers
Thread ID:
01003460
Message ID:
01003498
Vues:
27
Chris,

Is the view designer giving you the error?

If so you might try using eview available here in the files section or just create this view in code using CREATE SQL VIEW and forget about the limitations the view designer imposes.

>I'm trying to create a local view by chaining a few Left Outer Joins in grandparent-parent-child fashion. The join fields are all non-null integer primary keys, with the parent key in the child record (one to many). The VFP view designer builds, displays, saves, loads and browses correctly, but when I use the view in actual code, it throws error 1494: view definition has been changed.
>
>The error occurs as soon as a second LOJ is added, even if no fields from the child table are added. I've tried NVLing to integer values, but that doesn't work. How can I get view that VFP is giving me available in the program without an error?
>
>SELECT grand.grandid, parent.parentid, child.childid ;
>FROM mydbc!grand ;
>LEFT OUTER JOIN mydbc!parent on grand.grandid = parent.grandid ;
>LEFT OUTER JOIN mydbc!child on parent.parentid = child.parentid
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform