CTE

SQLServerCentral Article

Concatenating Rows

  • Article

Often in database design we store different values in rows to take advantage of a normalized design. However many times we need to combine multiple rows of data into one row for a report of some sort. New author Carl P. Anderson brings us some interesting T-SQL code to accomplish this.

3.39 (100)

You rated this post out of 5. Change rating

2011-03-04 (first published: )

149,479 reads

Technical Article

If I restore a database without an ODBC datasource setup will it fail?

  • Topic

I have tried to restore a database using a different computer than usual, which did not have the ODBC datasource setup for the database concerned.  The database is basically stuffed - I got an error message stating "modify file encountered operating system error 112..."When I installed SQL Server on this computer I set it up […]

You rated this post out of 5. Change rating

2005-05-16

Technical Article

RE: help with a query

  • Reply

Hmm.. I don't know, Remi... it seems they have their own business logic, with months absolutely independent on real calendar maybe setting things right would create confusion.If we suppose that you don't want to (or can't) change anything, try this:SELECT Q.city_code, Q.outlet_code, SUM(Q.sold0104), SUM(Q.sold0508),SUM(Q.sold0913),SUM(Q.sold1417),SUM(Q.sold1821) FROM (select [city_code], [outlet_code], CASE WHEN issue BETWEEN 1 AND 4 […]

You rated this post out of 5. Change rating

2005-04-28

Blogs

SQL Saturday Boston 2024 Slides

By

Thanks to everyone that came to my talks. Slides are below. Best Practices for...

Small Data SF 2024

By

I can’t remember how I heard about Small Data SF 2024, but it caught...

A New Word: Moledro

By

moledro – n. a feeling of resonant connection with an author or artist you’ll...

Read the latest Blogs

Forums

7 sept, scheduled book

By philip.scott

Comments posted to this topic are about the item 7 sept, scheduled book

7 sept, schedlued article

By philip.scott

Comments posted to this topic are about the item 7 sept, schedlued article

6 sept, published book

By philip.scott

Comments posted to this topic are about the item 6 sept, published book

Visit the forum

Question of the Day

Azure Data Lake Storage Gen 2

Azure Data Lake Storage Gen 2 is built on ...?

See possible answers