Link to home
Start Free TrialLog in
Avatar of zimmer9
zimmer9Flag for United States of America

asked on

How to extract a subset of records from a table using SQL ?

select *
from dbo.tblA1099LNExpAll
As INNER JOIN (dbo.A1099BR)
ON left([CPS Account Number],3) = Branch
I am creating an Access application using Access as the front end and SQL Server as the back end database.

I have a table named tblA1099LNExpAll and I want to extract all recrods from this table when
the 3 leftmost positions of a field tblA1099LNExpAll.[CPS Account Number] is equal to the
field tblA1099BR.Branch. What SQL statement would extract these records ?
Avatar of mbizup
Flag of Kazakhstan image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial