Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need help with a right join (I think?)
Message
 
À
23/08/1999 18:13:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00256837
Message ID:
00256851
Vues:
27
>Hi Roi,
>
>>This gives me the correct number of records however every record is the same. I tried it a bunch of different ways and am now completely confused.
>
>Does a LEFT join work?

I'm getting closer

I have this which gives me the opposite, an ab_id for for every catagory, AND an ab_id of .null. for every remaining catlink record * every record in catagory.
SELECT catlink.ab_id, catagory.catagory ;
	FROM catlink ;
	left JOIN  catagory ;
	ON catlink.ab_id = 57 ;
	INTO CURSOR temp
I also came up with:
SELECT catlink.ab_id, catagory.catagory ;
	FROM catlink ;
	right JOIN  catagory ;
	ON catlink.ab_id = 30 ;
	INTO CURSOR temp
Which is even closer. I get the correct number of records (47) however ab_id is 30 in each record instead of the 2 were ther is a match.

Still working on it.
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform