Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Complex Join
Message
From
03/10/2011 19:52:46
Hong Yew
People Quest
Malaysia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Complex Join
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01525492
Message ID:
01525492
Views:
107
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
Next
Reply
Map
View

Click here to load this message in the networking platform