﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server Newbies  / Translate rows in columns / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 16:48:54 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Translate rows in columns</title><link>http://www.sqlservercentral.com/Forums/Topic1369996-1292-1.aspx</link><description>[quote][b]tudorn (1/6/2013)[/b][hr]Hi Sean,Sorry I did not replied to you earlier.The two posts/links that you recommended were very good and helped me a lot to create the reports I needed.Thank you very much.[/quote]Hi tudorn, Did you get it done exactly as it shows in the image that you uploaded???.....would like to see the code....would be of help to others as well...could you please post it?</description><pubDate>Thu, 24 Jan 2013 02:01:51 GMT</pubDate><dc:creator>vinu512</dc:creator></item><item><title>RE: Translate rows in columns</title><link>http://www.sqlservercentral.com/Forums/Topic1369996-1292-1.aspx</link><description>[quote][b]Jeff Moden (1/6/2013)[/b][hr]I have to say that's one of the longer belated thank-you's I've seen in a while and I still think it's very cool that you came back to do so.  Well done.  Proof positive the later really is usually better than never.[/quote]+1</description><pubDate>Mon, 07 Jan 2013 07:46:42 GMT</pubDate><dc:creator>Sean Lange</dc:creator></item><item><title>RE: Translate rows in columns</title><link>http://www.sqlservercentral.com/Forums/Topic1369996-1292-1.aspx</link><description>[quote][b]tudorn (1/6/2013)[/b][hr]Hi Sean,Sorry I did not replied to you earlier.The two posts/links that you recommended were very good and helped me a lot to create the reports I needed.Thank you very much.[/quote]Glad you were able to get it fixed.</description><pubDate>Mon, 07 Jan 2013 07:46:27 GMT</pubDate><dc:creator>Sean Lange</dc:creator></item><item><title>RE: Translate rows in columns</title><link>http://www.sqlservercentral.com/Forums/Topic1369996-1292-1.aspx</link><description>I have to say that's one of the longer belated thank-you's I've seen in a while and I still think it's very cool that you came back to do so.  Well done.  Proof positive the later really is usually better than never.</description><pubDate>Sun, 06 Jan 2013 23:30:37 GMT</pubDate><dc:creator>Jeff Moden</dc:creator></item><item><title>RE: Translate rows in columns</title><link>http://www.sqlservercentral.com/Forums/Topic1369996-1292-1.aspx</link><description>Hi Sean,Sorry I did not replied to you earlier.The two posts/links that you recommended were very good and helped me a lot to create the reports I needed.Thank you very much.</description><pubDate>Sun, 06 Jan 2013 00:49:44 GMT</pubDate><dc:creator>tudorn</dc:creator></item><item><title>RE: Translate rows in columns</title><link>http://www.sqlservercentral.com/Forums/Topic1369996-1292-1.aspx</link><description>Hi and welcome to SSC. What you have posted as desired output looks more like a report then the results of query. You have column group headers and column names. This type of thing is called a cross tab. It is generally more efficient (and far easier) to do this in the front end. This is very challenging to do in sql especially given the dynamic nature of what you are after. It can be done but it will take some considerable effort on your part. There are two links in my signature about cross tabs. They will explain in great detail how to do this sort of thing. If you are simply stumped after trying the methods laid out in there you should read the first link in my signature about best practices when posting questions. At that point you will need to post ddl (create table scripts), sample data (insert statements) and desired output based on your sample data.</description><pubDate>Mon, 08 Oct 2012 14:19:34 GMT</pubDate><dc:creator>Sean Lange</dc:creator></item><item><title>Translate rows in columns</title><link>http://www.sqlservercentral.com/Forums/Topic1369996-1292-1.aspx</link><description>[font="Courier New"]Hello,I have the following TitleDetailsRequest table: see TitleDetailsRequest.jpg attachment.I need to get an output of the EN_No and FR_No for all the Stores and for all the titles Title based on the latest RequestDate as follow: see TitleDetailsRequest_Output.jpg attachment.The Title table have all the titles that need to be in the output, so if a title is not in the TitleDetailsRequest table (i.e. Title3) the output should just display "0". Currently there are 30 titles in the Title table but the users can add new titles so hardcoding the titles into columns will not be an option considering that the users can also add new titles.Your help with regards to this matter will be greatly appreciated.Thanks [/font]</description><pubDate>Mon, 08 Oct 2012 12:35:43 GMT</pubDate><dc:creator>tudorn</dc:creator></item></channel></rss>