I need to pull only one record from access for each customer based on the last order date. I have tried to use a inner join in Select Query.
I have the following as a where statement:
(Select MAX (SPR_ACTIVITY_DATE) from dbo_SPR WHERE dbo_SPR.SPR_PIDM = SPR_PIDM)
But it pulls no records....can anyone help?
Thanks
I have the following as a where statement:
(Select MAX (SPR_ACTIVITY_DATE) from dbo_SPR WHERE dbo_SPR.SPR_PIDM = SPR_PIDM)
But it pulls no records....can anyone help?
Thanks