Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select 3 records
Message
De
13/03/2008 16:21:54
 
 
À
13/03/2008 08:54:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01301530
Message ID:
01301950
Vues:
13
<>

Thanks folks. I am not looking for "physical adjacency". Suppose the source table has no particular source order and is a contact database like Outlook; name, address, phone etc. The definition of next and previous is based on an alpha sort on the name field. So I know the target record is where
keyID = myVar.
I want to obtain the KeyID for the records before and after the target WHEN the table is alpha sorted. Naomi's idea may work, I haven't tried it yet but I will. A simple SKIP and SKIP -1 won't work in this instance because the SELECT is being executed from a web page via ASP and the usual VFP commands are not readily available. That's why I wanted to do it all in a single SELECT statement.

Thanks again.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform