im trying to get a 1 to many join to be a 1 to 1 on a filtered criteria. So to simplify I have 2 tables
Accounts | [acctnum], [name]
Purchases | [acctnum], [ammount], [purchasedate]
There can be many purchases to one account but I just want joins from its single most recent purchasedate. I've looked into using top 1 but i havent been able to get the sytanx for that to work.
Any help with this would great, thanks.
Accounts | [acctnum], [name]
Purchases | [acctnum], [ammount], [purchasedate]
There can be many purchases to one account but I just want joins from its single most recent purchasedate. I've looked into using top 1 but i havent been able to get the sytanx for that to work.
Any help with this would great, thanks.