Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Algorithm for selecting parent records from child criter
Message
De
21/02/2001 12:07:14
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
21/02/2001 12:02:54
Bryan Palmer
Ramtech Building Systems, Inc.
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00477997
Message ID:
00478037
Vues:
27
>Queries work great. Two things I'm hitting though are: 1) Deleted records in the KWRDLINK table are pulling up, which means the keyword isn't valid anymore for that photo, and 2) Keywords are pulling photos on a Keyword1 OR Keyword2 OR Keyword3 instead of a Keyword1 AND Keyword2 AND Keyword3.
>
>Thanks for your help with this! Makes the code much much much more readable!

ad 1) add "and !deleted()" to the where clause where you pull from the kwrdlink

ad 2) you may want to add a
Group By pictureid having cnt(pictureid)>=numberofkeywords
clause to your last SQL, so it will pull only those which have them all. The numberofkeywords would be the recordcount of the first cursor (where we did the Append From).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform