SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 PIVOT HELP
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pnpsql
Posting Yak Master

India
246 Posts

Posted - 12/28/2012 :  05:54:27  Show Profile  Reply with Quote
I WANT DATA IN PIVOT FROM BELOW QUEY PLEASE HELP.

SELECT PRD.PRODNAME ,SXC.PRODUCTID ,
SXC.CHARGEID ,
SXC.AUTOKNOCKOFF SXCKNOCKOFF, PRD.AUTOKNOCKOFF PRDKNOCKOFF FROM
PRD LEFT JOIN
SXC
ON PRD.PRODUCTID = SXC.PRODUCTID

challenge everything

bandi
Flowing Fount of Yak Knowledge

India
2202 Posts

Posted - 12/28/2012 :  06:56:14  Show Profile  Reply with Quote
SELECT PRD.PRODNAME, SXC.PRODUCTID, SXC.CHARGEID, SXC.AUTOKNOCKOFF, SXC.KNOCKOFF, PRD.AUTOKNOCKOFF, PRD.KNOCKOFF
FROM PRD
LEFT JOIN SXC
ON PRD.PRODUCTID = SXC.PRODUCTID

Can you provide sample input data and expected output?


--
Chandu
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000