SELECT OBJECT(pn2)
FROM PhoneNumber pn1, pn2...
Is this syntax ok? I guess FROM must be of them form
FROM identification_variable_declaration, identification_variable_declaration, ...
where
identification_variable_declarationmust be either
IN(...) syntax or
abstract_schema_name [AS] identifier.
So I guess this syntax (if allowed) is required:
FROM PhoneNumber pn1, PhoneNumber pn2
But I am not sure if one schema can be assigned to 2 identifers