.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Steve Jackman
Imran Ghani
Santhakumar Munuswamy

Home >> Forum >> Sql Server >> Post New QuestionBookmark and Share Subscribe to Forum

Required Union All Result in two different column

Posted By: Aamrapali Tamgadge     Posted Date: April 29, 2014    Points:5   Category :Sql Server
hello. i m having one category column in that m having 6 record.

Table name : Category

categoryname nvarchar(50)
languageid int



Categoryname LanguageID

abc 0
xyz 0
pqr 0
### 1
$$$ 1
%%% 1


I want the Result like

Englishvalues TranslatedValues
abc ###
xyz $$$
pqr %%%


I did union bu in union all the rows comes in one columns how can i

do this?

Responses
Author: Akhil Raj       [Moderator]      
Posted Date: May 19, 2014     Points: 20   

Can you explain the scenario. If you transform rows into column you can use PIVOT.



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend