July 1, 2010 at 11:20 am
any help on this:
http://www.sqlservercentral.com/Forums/Topic946357-148-1.aspx
Thanks [/font]
July 1, 2010 at 12:20 pm
I'll reply on the main thread instead of this one
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
July 1, 2010 at 12:43 pm
I don't know it will work for you or not..
SELECT TRAN_ID,DATE,TYPE,CANC,CEMP,DHKP,GECD,GMVD,IHHE,INPH,ACTION_DATE FROM
(SELECT TRAN_ID,DATE,TYPE,MIN(EMP) AS EMP,ACTION,ACTION_DATE FROM #TEST GROUP BY TRAN_ID,DATE,TYPE,ACTION,ACTION_DATE) AS P
PIVOT
(MIN(P.EMP) FOR P.ACTION IN (CANC,CEMP,DHKP,GECD,GMVD,IHHE,INPH)) AS PVT
ORDER BY TRAN_ID
🙂
July 1, 2010 at 2:42 pm
priya__ (7/1/2010)
any help on this:http://www.sqlservercentral.com/Forums/Topic946357-148-1.aspx
I'd say "Not on this thread". Keep your stuff together, please... especially since you already have an answer on the other thread.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply