Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Record from same table
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01240631
Message ID:
01240668
Vues:
24
>thanks Naomi, for your reply and understanding my question.
>but i have many records, which i want to show in this.

As long as you have 2 records per each ID with only 2 different years, it would work.

If you may not have records for each year (say, only 2006 and no 2007) you may need LEFT JOIN (or FULL JOIN) and NVL function. And if you may have more than 1 record per year - we need to think a bit harder, e.g. we may need to group by ID and year and use two derived tables.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform