Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Complex Join
Message
De
03/10/2011 19:52:46
Hong Yew
People Quest
Malaisie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Complex Join
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01525492
Message ID:
01525492
Vues:
106
Hi all

I have 2 tables A & B as follows

Table A
1. emp_no
2. name

Table B
1. effective_date
2. event_sequence
3. eveny_type
4. salary

Table B is the career progression of employee.
One employee can have multiple records in table B and can have multiple records on same date.

I wish to join table A & B in such a way that it returns for each employee, the table B record for a given date with the highest sequence.

Your advice is truly appreciated

Thanks & Best Regards
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform