I already join five database. And the end I come to last step of my calculation, but here some problem arise. You can see code code below :
DECLARE @Locations TAB