select t.name
from (pratip_Person natural join pratip_M_Director) as t;
What is the syntax error in this query?
The brackets around (pratip_Person natural join pratip_M_Director) are your problem!
Try
select t.name from pratip_Person natural join pratip_M_Director as t;
(unless the Q at the start is really part of your query!)
t could represent the natural join as opposed to either the pratip_M_Director table or the entire select statement... but the brackets being where they are now is causing the syntax error.Name in both, you need to specify whether you want the Person's or the Director's Name. Are you confusing the join with a subquery?
natural joinshould be avoided because it is susceptible to side effects. Personally I would always use the more explicitjoin on