I couldn't think of a better title. If you have any suggestions, feel free to edit the title of my post.
I have a foxpro query that looks like this:
Sele
a.plan_enddt as enddt, a.plrevno, a.keyfld, "PLAN " as source ;
from a_plan a inner join c_temp1a_pre b ;
on a.keyfld=b.keyfld and a.plrevno=b.plrevno ;
into cursor c_temp1a ;
group by a.keyfld ;
where a.plan_enddt>=date1 ;
What I am trying to do is translate from foxpro into T-SQL.
Wouldn't this foxpro statement fail because only 1 column is listed in the group by?
Edit:
I am not looking for a solution to fixing my foxpro statement
In TSQL, you can't just group by 1 column if you have multiple in the select statement, even if you aren't using an aggregate function.
Is this also true in Foxpro?