Data Types to use GROUP BY, ORDER BY, WHERE etc. to be stored in variables

  • Hi guys, I'm using SQL Server 2000 and my question is, There's a Data Type for clauses like GRUOUP BY or ORDER BY, to be managed like variables ? , all I want is to construct a query that I can order it or not having a simple query.

  • It's not clear to me, but maybe you want to create a dynamic order by?...

    http://www.sqlteam.com/item.asp?ItemID=2209

    If not, post some sample data and the result(s) you would like for it.

    Ryan Randall

    Solutions are easy. Understanding the problem, now, that's the hard part.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply