sql - Shortening GROUP BY Clause -


Is it possible to shorten a group with a clause, so that you do not need to repeat the differences in the selected clause ad ? For example:

  SELECT field1, field2, field3, field4 from Table Group to field 1, field 2, field 3, field 4: SELECT field1, field2, field3, field4 Select from table From the group *  

... or something for this effect. I am writing a question which will use the sp_executesql () stored procedure and I am running out of available space in my variable. Thank you very much

Choose whether you are looking for SELECT DISTINCT or DISTINCTROW ?


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -