Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inexact SQL match
Message
De
20/05/2001 22:49:37
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Inexact SQL match
Divers
Thread ID:
00509308
Message ID:
00509308
Vues:
51
Hi every VFP users, I need to do an inexact SQL match between 2 or more tables but couldn't get it to work the way I want it. I have a patients table and a medical visits table. I need to find the last visit record of each patient in the year 1999. My SQL goes somthing like this.

SELECT name, max(dt), billamt from patient,visit where year(dt)<=1999

I could get the right date but the bill amount does not retrieve correctly from the last visit record for year 1999.

Best regards
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform