CREATE TABLE rotated_bus AS SELECT AO_id,
RotateCoords(ST_Centroid(Geometry) FROM Substation, 45.00) AS Geometry FROM Busbar;
I am trying to rotate a line geometry (Busbar) by passing the centroid of a polygon geometry (Substation) inside the RotateCoords Function. After running the above query, I am getting an error “near FROM syntax error”. What is wrong with my query?