Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Query designer relating tables
Message
De
13/01/2003 20:04:17
Victor Verheij
International Film Festival Rotterdam
Rotterdam, Pays-Bas
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Query designer relating tables
Divers
Thread ID:
00741247
Message ID:
00741247
Vues:
62
Why can't I make a query ivolving four tables

I've got four tables:
volunt, year, adress and function

The volunt table refers to the three other tables
So the volunt table is the one that connect the others,
and gathers information about a volunteer.

I encountered no problems doing relating these four tables in the database designer.

When I try to create a query on these tables involving all four tables I get
an error like "SQL; collumn 'pk_volunt' is not found" (the 'pk_volunt'
portion of the message is different depending on the the fourth table)

When I remove one table (not the volunt) from the query I can successfully save it.

the sql looked like this:

SELECT volunt.pk_volunt, year.*, Function.name;
FROM roster!year INNER JOIN roster!volunt;
INNER JOIN roster!function;
INNER JOIN roster!adres ;
ON Adress.pk_adress = volunt.pk_volunt ;
ON Function.pk_functie = volunt.pk_function ;
ON year.pk_year = volunt.pk_year

Tia.
Victor
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform