Hi all,
I have the following query which returns the last 5 digits of a statement number :-
How can I amend this so the query only considers [Statement_Number] with a length of 17?
Thanks
I have the following query which returns the last 5 digits of a statement number :-
Code:
SELECT DISTINCT b.Brokerage_Name, Max(Right([Statement_Number],5)) AS Expr1
FROM tblBrokeragesNew b LEFT JOIN tblStatementsNew s ON b.ID = s.Brokerage_ID
GROUP BY b.Brokerage_Name;
How can I amend this so the query only considers [Statement_Number] with a length of 17?
Thanks