Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get rid of the rest of joined records?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
How to get rid of the rest of joined records?
Divers
Thread ID:
00064157
Message ID:
00064157
Vues:
70
I have the remote view

SELECT Pftenants.tn_key, Pftenants.tn_pfkey, Pftenants.tn_tekey,;
Pftenants.tn_tenantname, Pftenants.tn_leaseterm,;
Pftenants.tn_leaseexpiry, Pftenants.tn_area, Pftenants.tn_percrent,;
Pftenrent.tr_rate, Pftenants.tn_spacetype,Pftenants.tn_dateentered,;
Pftenrent.tr_startdate, Pftenants.tn_vacant;
FROM dbo.PFTENANTS Pftenants, dbo.PFTENRENT Pftenrent;
WHERE Pftenants.tn_key = Pftenrent.tr_tnkey;
AND Pftenants.tn_pfkey = ?rv_pf.pf_key;
ORDER BY Pftenants.tn_tenantname, ;
Pftenrent.tr_startdate DESC

which after the gives me several records for the same tenant with different rates. I need just first record of them. How I can get rid of others in one view definition?
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform