I have a query that goes something like this.
select table1.field1 as field1,table1.field2 as field2 from table1 group by field1
SQL Server 2000 gives me an error that the GROUP BY must be in the select list.
I must use this syntax if possible (Alias fields).
Any ideas as to how to fix ?
Thanks in advance.
select table1.field1 as field1,table1.field2 as field2 from table1 group by field1
SQL Server 2000 gives me an error that the GROUP BY must be in the select list.
I must use this syntax if possible (Alias fields).
Any ideas as to how to fix ?
Thanks in advance.