SELECT O.HiddenOrgID,
O.OrganizationName,
O.OrgAddressNumber,
O.OrgAddressDirection,
O.OrgAddressStreet,
O.OrgAddress2,
O.OrgCity,
O.OrgState,
O.OrgZip,
O.OrgZip6,
O.BrokerID,
U.HiddenUsrID,
U.UserLastName,
U.UserFirstName,
U.UserMI,
B.BrokerName,
B.BrokerWhatEver
FROM dbo.Organizations O
INNER JOIN dbo.Users U ON O.HiddenOrgID = U.HiddenOrgID
INNER JOIN dbo.Brokers B ON B.HiddenBrokerID = O.HiddenBrokerID
WHERE U.user_is_active = 1
AND O.OrganizationName IS NOT NULL
AND U.UserLastName IS NOT NULL
|