I have a table being pulled from SharePoint into Access. I have the same table brought in 3x naming them Acquisition, Disposition, & Rehab.
Essentially it houses info for things happening to certain addresses, so for example there is a property that has an Acquisition (bought), then Rehab (work on property) tasks are done, then a Disposition (sell property).
So I modeled the query off of an old SQL query and its not functioning the same way, i'm sure its just me not understanding the differences of SQL Server vs Access SQL. =P
Using SQL Server I get one record with all the info i need, but in Access i get 4 records. It looks like its doing some sort of FULL JOIN.
Code:
SELECT Disposition.ID, Acquisition.[Content Type], Disposition.[Property Address], Acquisition.[Acquisition Price], Acquisition.[Begin/Contract Date], Acquisition.[End/Close Date], Disposition.[End/Close Date], Disposition.[Sales Price], Disposition.[Appraised Value], Disposition.[Home Buyer/Renter AMI], Disposition.[Annual Household Income], Disposition.[Members in Household], Acquisition.[Begin/Contract Date], Acquisition.[Obligated Amount], Rehab.[Expended Amount], Disposition.[Content Type]FROM ([XXX-Activity] AS Disposition LEFT JOIN [XXX-Activity] AS Acquisition ON Disposition.[Property Address] = Acquisition.[Property Address]) LEFT JOIN [XXX-Activity] AS Rehab ON Disposition.[Property Address] = Rehab.[Property Address]
WHERE Disposition.[Content Type] Like "*Disposition*";
If I am missing anything please let me know I will attempt to add and any Suggestions are welcome. =)