SQL Server 2000General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
This has been discussed many times on this forum. This is best and easlily done on the frontend, rather than using sql statement. If you have not searched here on this, do a search, you will find a lot of ideas discussed here on that.
Cheers!
_________________________
- Vijay G Strive for Perfection
You can do with SQL query but I feel a need of Grouping as must here.
See "Rotating table in Sql Server" topic in Microsoft site. Example is given there.