MKItani
asked on
special join+ms sql server 2005
hi all i have two tables as follow:
Table A:
A_ID A_Name OrdeNo
1 JAD 1
2 Samir 2
Table B:
B_ID B_Name OrderNo Amount Date
1 jean 1 20 10/10/2010
1 Khalil 1 30 10/10/2011
I want to join the two tables to get as out put:
A_ID A_Name Date
but the problem is the join between the two tables is basic according to OrderNo of Max(Amount).
Please advice.
Regards,
Table A:
A_ID A_Name OrdeNo
1 JAD 1
2 Samir 2
Table B:
B_ID B_Name OrderNo Amount Date
1 jean 1 20 10/10/2010
1 Khalil 1 30 10/10/2011
I want to join the two tables to get as out put:
A_ID A_Name Date
but the problem is the join between the two tables is basic according to OrderNo of Max(Amount).
Please advice.
Regards,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.