I'm trying to join 2 tables and getting this error.
About schema: PK's are a.app_guid, s.space_guid, o.org_guid.
The multi-part identifier "apps.space_guid" could not be bound
SELECT
a.app_guid,
a.name,
a.state,
a.created_at,
a.updated_at,
deleted_at,
a.space_guid,
a.foundation,
a.timestamp,
s.space_guid,
s.name,
s.created_at,
s.updated_at,
s.timestamp,
s.foundation,
s.org_guid,
o.org_guid,
o.created_at,
o.updated_at,
o.name,
o.timestamp,
o.foundation
FROM
apps a, spaces s, organizations o
INNER JOIN
[spaces] ON [apps].[space_guid] = [spaces].[space_guid]
INNER JOIN
[organizations] ON [spaces].[org_guid] = [organizations].[org_guid]
The expected result will include a table where its all combine according to space_guid
and org_guid