Steve


Technical Article

Change Result Set Columns to Rows

I had a developer in my company come to me recently with a unique request.  He asked if there was any way for sql to return a result set that was flopped.  In other words he wanted the rows to be columns and the columns to be rows.  So that a result set like this:Col1    […]

You rated this post out of 5. Change rating

2004-07-19 (first published: )

344 reads

Blogs

MVP No more, But It’s OK

By

Embracing Limitations: Finding Strength and Purpose in Hard Times For four years, I was...

A New Word: Fitching

By

fitching – v. intr. compulsively turning away from works of art you find frustratingly,...

Copilot in Microsoft Fabric

By

Microsoft Copilot is an app that uses AI to help you find information, create content,...

Read the latest Blogs

Forums

what are the software' required for sqlserver dba in laptop to install in new co

By naga.rohitkumar

HI Team, what are the software's required for sqlserver dba in laptop to install...

The Danger of Safety Assistance Tools

By Louis Davidson (@drsql)

Comments posted to this topic are about the item The Danger of Safety Assistance...

needing to insert 2 sets of numbers to a table to use as ranges for a query

By roy.tollison

the ranges (a lot) need to have a preset spacing between each set of...

Visit the forum

Question of the Day

What's Wrong with this Table?

What's wrong with this code and causes an error?

CREATE TABLE Customer
(
    CustomerID INT NULL,
    FirstName NVARCHAR(50) NOT NULL,
    LastName NVARCHAR(50) NULL,
    Email NVARCHAR(100) NOT NULL,
CONSTRAINT CustomerPK PRIMARY KEY (CustomerID, LastName)
);


See possible answers