join query [message #623622] |
Fri, 12 September 2014 00:36 |
|
Mayur Shinde
Messages: 60 Registered: August 2014 Location: Pune, Maharashtra
|
Member |
|
|
I have one table as mentioned below:
Loc_Cd
Efe_Dt
Grade_Cd
Prize
Cr_By
Cr_Dt
Auth_By
Auth_Dt
Flag .
When I Insert data, table will be as below:
Loc_Cd Efe Dt Grade_Cd Prize Cr_By Cr_Dt Auth_By Auth_Dt Flag
-----------------------------------------------------------------------------------
1110 12/1/2014 002 100.00 90112 9/12/2014 10:45:45 AM C
1110 12/1/2014 002 200.00 90112 9/12/2014 10:45:45 AM R
Now, I have to display data as below:
Grade_cd C_PRIZE R_PRIZE
--------------------------------
002 100 200
Please suggest me...
Lalit : Added code tags. In future, please do it yourself. Read How to use [code] tags.
[Updated on: Fri, 12 September 2014 00:38] by Moderator Report message to a moderator
|
|
|
|
|
|
|
Re: join query [message #623627 is a reply to message #623626] |
Fri, 12 September 2014 01:12 |
Lalit Kumar B
Messages: 3174 Registered: May 2013 Location: World Wide on the Web
|
Senior Member |
|
|
Since we don't have your table and data, we cannot validate if that's correct. But, that is not PIVOT.
|
|
|
|
|
Re: join query [message #623631 is a reply to message #623629] |
Fri, 12 September 2014 02:44 |
Lalit Kumar B
Messages: 3174 Registered: May 2013 Location: World Wide on the Web
|
Senior Member |
|
|
Yes, now I see. When I initially saw it in hurry I was looking for PIVOT keyword, without code tags it is difficult to analyze a code quickly.
|
|
|